From eb91a3cd4242d259323ee7ed181dbcd56ee32326 Mon Sep 17 00:00:00 2001 From: Joshua Dwire Date: Tue, 19 Apr 2016 16:31:50 -0400 Subject: [PATCH] Fix typos --- app/Models/Account.php | 4 ++-- resources/views/invoices/view.blade.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Models/Account.php b/app/Models/Account.php index efbfd5b204..3f8ca4810c 100644 --- a/app/Models/Account.php +++ b/app/Models/Account.php @@ -830,7 +830,7 @@ class Account extends Eloquent // White Label case FEATURE_WHITE_LABEL: - if ($this->isNinjaAccount() || (!$selfHost && $planDetails && !$plan_details['expires'])) { + if ($this->isNinjaAccount() || (!$selfHost && $planDetails && !$planDetails['expires'])) { return false; } // Fallthrough @@ -1262,7 +1262,7 @@ class Account extends Eloquent public function attatchPDF() { - return $this->hasFeaure(FEATURE_PDF_ATTACHMENT) && $this->pdf_email_attachment; + return $this->hasFeature(FEATURE_PDF_ATTACHMENT) && $this->pdf_email_attachment; } public function getEmailDesignId() diff --git a/resources/views/invoices/view.blade.php b/resources/views/invoices/view.blade.php index 730094e659..13d83c3746 100644 --- a/resources/views/invoices/view.blade.php +++ b/resources/views/invoices/view.blade.php @@ -84,7 +84,7 @@ window.invoice = {!! $invoice->toJson() !!}; invoice.features = { customize_invoice_design:{{ $invoice->client->account->hasFeature(FEATURE_CUSTOMIZE_INVOICE_DESIGN) ? 'true' : 'false' }}, - remove_created_by:{{ $invoice->client->account)->hasFeature(FEATURE_REMOVE_CREATED_BY) ? 'true' : 'false' }}, + remove_created_by:{{ $invoice->client->account->hasFeature(FEATURE_REMOVE_CREATED_BY) ? 'true' : 'false' }}, invoice_settings:{{ $invoice->client->account->hasFeature(FEATURE_INVOICE_SETTINGS) ? 'true' : 'false' }} }; invoice.is_quote = {{ $invoice->is_quote ? 'true' : 'false' }};