From 620b09ccc868472f628e0c169b500b7f8f194a5d Mon Sep 17 00:00:00 2001 From: Samuel De Backer Date: Mon, 25 Aug 2014 21:56:43 +0200 Subject: [PATCH 1/8] Seeding ok with MySQL STRICT_TRANS_TABLE, fixes #157 --- ...2014_03_25_102200_add_sort_and_recommended_to_gateways.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/database/migrations/2014_03_25_102200_add_sort_and_recommended_to_gateways.php b/app/database/migrations/2014_03_25_102200_add_sort_and_recommended_to_gateways.php index 535636f90e6a..a49fe8f855ef 100644 --- a/app/database/migrations/2014_03_25_102200_add_sort_and_recommended_to_gateways.php +++ b/app/database/migrations/2014_03_25_102200_add_sort_and_recommended_to_gateways.php @@ -15,8 +15,8 @@ class AddSortAndRecommendedToGateways extends Migration { Schema::table('gateways', function($table) { $table->unsignedInteger('sort_order')->default(10000); - $table->boolean('recommended'); - $table->string('site_url', 200); + $table->boolean('recommended')->default(0); + $table->string('site_url', 200)->nullable(); }); } From 17ab45014adee807a9b4ba7e7b2e8e414f239fbb Mon Sep 17 00:00:00 2001 From: Samuel De Backer Date: Mon, 25 Aug 2014 22:31:45 +0200 Subject: [PATCH 2/8] Migrations for accounts and users tables Now when clicking on INVOICE NOW, we can reach first step of a new invoice creation even with MySQL 5.6 default STRICT_TRANS_TABLE. --- ...11_05_180133_confide_setup_users_table.php | 30 +++++++++---------- ...2014_03_03_155556_add_phone_to_account.php | 4 +-- .../2014_04_03_191105_add_pro_plan.php | 2 +- .../2014_04_17_145108_add_custom_fields.php | 12 ++++---- ...014_04_29_174315_add_advanced_settings.php | 4 +-- ...4_07_17_205900_support_hiding_quantity.php | 12 ++++---- 6 files changed, 32 insertions(+), 32 deletions(-) diff --git a/app/database/migrations/2013_11_05_180133_confide_setup_users_table.php b/app/database/migrations/2013_11_05_180133_confide_setup_users_table.php index 3ddc66d16b89..e0411ca525fa 100755 --- a/app/database/migrations/2013_11_05_180133_confide_setup_users_table.php +++ b/app/database/migrations/2013_11_05_180133_confide_setup_users_table.php @@ -132,19 +132,19 @@ class ConfideSetupUsersTable extends Migration { $t->timestamps(); $t->softDeletes(); - $t->string('name'); + $t->string('name')->nullable(); $t->string('ip'); $t->string('account_key')->unique(); $t->timestamp('last_login'); - $t->string('address1'); - $t->string('address2'); - $t->string('city'); - $t->string('state'); - $t->string('postal_code'); + $t->string('address1')->nullable(); + $t->string('address2')->nullable(); + $t->string('city')->nullable(); + $t->string('state')->nullable(); + $t->string('postal_code')->nullable(); $t->unsignedInteger('country_id')->nullable(); - $t->text('invoice_terms'); - $t->text('email_footer'); + $t->text('invoice_terms')->nullable(); + $t->text('email_footer')->nullable(); $t->unsignedInteger('industry_id')->nullable(); $t->unsignedInteger('size_id')->nullable(); @@ -177,16 +177,16 @@ class ConfideSetupUsersTable extends Migration { $t->timestamps(); $t->softDeletes(); - $t->string('first_name'); - $t->string('last_name'); - $t->string('phone'); + $t->string('first_name')->nullable(); + $t->string('last_name')->nullable(); + $t->string('phone')->nullable(); $t->string('username')->unique(); - $t->string('email'); + $t->string('email')->nullable(); $t->string('password'); $t->string('confirmation_code'); $t->boolean('registered')->default(false); $t->boolean('confirmed')->default(false); - $t->integer('theme_id'); + $t->integer('theme_id')->nullable(); $t->boolean('notify_sent')->default(true); $t->boolean('notify_viewed')->default(false); @@ -194,7 +194,7 @@ class ConfideSetupUsersTable extends Migration { $t->foreign('account_id')->references('id')->on('accounts')->onDelete('cascade'); - $t->unsignedInteger('public_id'); + $t->unsignedInteger('public_id')->nullable(); $t->unique( array('account_id','public_id') ); }); @@ -202,7 +202,7 @@ class ConfideSetupUsersTable extends Migration { { $t->increments('id'); $t->unsignedInteger('account_id'); - $t->unsignedInteger('user_id'); + $t->unsignedInteger('user_id'); $t->unsignedInteger('gateway_id'); $t->timestamps(); $t->softDeletes(); diff --git a/app/database/migrations/2014_03_03_155556_add_phone_to_account.php b/app/database/migrations/2014_03_03_155556_add_phone_to_account.php index 1de12fb34e3b..79e03e9d183a 100644 --- a/app/database/migrations/2014_03_03_155556_add_phone_to_account.php +++ b/app/database/migrations/2014_03_03_155556_add_phone_to_account.php @@ -14,8 +14,8 @@ class AddPhoneToAccount extends Migration { { Schema::table('accounts', function($table) { - $table->string('work_phone'); - $table->string('work_email'); + $table->string('work_phone')->nullable(); + $table->string('work_email')->nullable(); }); } diff --git a/app/database/migrations/2014_04_03_191105_add_pro_plan.php b/app/database/migrations/2014_04_03_191105_add_pro_plan.php index 05f74ebdf40b..cbc714971f1d 100644 --- a/app/database/migrations/2014_04_03_191105_add_pro_plan.php +++ b/app/database/migrations/2014_04_03_191105_add_pro_plan.php @@ -14,7 +14,7 @@ class AddProPlan extends Migration { { Schema::table('accounts', function($table) { - $table->date('pro_plan_paid'); + $table->date('pro_plan_paid')->nullable(); }); } diff --git a/app/database/migrations/2014_04_17_145108_add_custom_fields.php b/app/database/migrations/2014_04_17_145108_add_custom_fields.php index ac88c4012b70..c6c1360823ae 100644 --- a/app/database/migrations/2014_04_17_145108_add_custom_fields.php +++ b/app/database/migrations/2014_04_17_145108_add_custom_fields.php @@ -14,14 +14,14 @@ class AddCustomFields extends Migration { { Schema::table('accounts', function($table) { - $table->string('custom_label1'); - $table->string('custom_value1'); + $table->string('custom_label1')->nullable(); + $table->string('custom_value1')->nullable(); - $table->string('custom_label2'); - $table->string('custom_value2'); + $table->string('custom_label2')->nullable(); + $table->string('custom_value2')->nullable(); - $table->string('custom_client_label1'); - $table->string('custom_client_label2'); + $table->string('custom_client_label1')->nullable(); + $table->string('custom_client_label2')->nullable(); }); Schema::table('clients', function($table) diff --git a/app/database/migrations/2014_04_29_174315_add_advanced_settings.php b/app/database/migrations/2014_04_29_174315_add_advanced_settings.php index 589bc6a7450b..ae91740d21f3 100644 --- a/app/database/migrations/2014_04_29_174315_add_advanced_settings.php +++ b/app/database/migrations/2014_04_29_174315_add_advanced_settings.php @@ -14,8 +14,8 @@ class AddAdvancedSettings extends Migration { { Schema::table('accounts', function($table) { - $table->string('primary_color'); - $table->string('secondary_color'); + $table->string('primary_color')->nullable(); + $table->string('secondary_color')->nullable(); }); Schema::table('payments', function($table) diff --git a/app/database/migrations/2014_07_17_205900_support_hiding_quantity.php b/app/database/migrations/2014_07_17_205900_support_hiding_quantity.php index d055e4e908cb..5a8ed681bc8b 100644 --- a/app/database/migrations/2014_07_17_205900_support_hiding_quantity.php +++ b/app/database/migrations/2014_07_17_205900_support_hiding_quantity.php @@ -14,14 +14,14 @@ class SupportHidingQuantity extends Migration { { Schema::table('accounts', function($table) { - $table->boolean('hide_quantity'); - $table->boolean('hide_paid_to_date'); + $table->boolean('hide_quantity')->default(0); + $table->boolean('hide_paid_to_date')->default(0); - $table->string('custom_invoice_label1'); - $table->string('custom_invoice_label2'); + $table->string('custom_invoice_label1')->nullable(); + $table->string('custom_invoice_label2')->nullable(); - $table->boolean('custom_invoice_taxes1'); - $table->boolean('custom_invoice_taxes2'); + $table->boolean('custom_invoice_taxes1')->nullable(); + $table->boolean('custom_invoice_taxes2')->nullable(); }); Schema::table('invoices', function($table) From bb4b14e49c71c0880f9b6f3ce2f76d92d03f9531 Mon Sep 17 00:00:00 2001 From: Samuel De Backer Date: Mon, 25 Aug 2014 23:26:17 +0200 Subject: [PATCH 3/8] Client import, create invoice with STRICT_TRANS_TABLE --- ...11_05_180133_confide_setup_users_table.php | 66 +++++++++---------- .../2014_04_17_145108_add_custom_fields.php | 4 +- .../2014_05_17_175626_add_quotes.php | 2 +- 3 files changed, 36 insertions(+), 36 deletions(-) diff --git a/app/database/migrations/2013_11_05_180133_confide_setup_users_table.php b/app/database/migrations/2013_11_05_180133_confide_setup_users_table.php index e0411ca525fa..a5d50635c8c4 100755 --- a/app/database/migrations/2013_11_05_180133_confide_setup_users_table.php +++ b/app/database/migrations/2013_11_05_180133_confide_setup_users_table.php @@ -235,23 +235,23 @@ class ConfideSetupUsersTable extends Migration { $t->timestamps(); $t->softDeletes(); - $t->string('name'); - $t->string('address1'); - $t->string('address2'); - $t->string('city'); - $t->string('state'); - $t->string('postal_code'); + $t->string('name')->nullable(); + $t->string('address1')->nullable(); + $t->string('address2')->nullable(); + $t->string('city')->nullable(); + $t->string('state')->nullable(); + $t->string('postal_code')->nullable(); $t->unsignedInteger('country_id')->nullable(); - $t->string('work_phone'); - $t->text('private_notes'); - $t->decimal('balance', 13, 2); - $t->decimal('paid_to_date', 13, 2); + $t->string('work_phone')->nullable(); + $t->text('private_notes')->nullable(); + $t->decimal('balance', 13, 2)->nullable(); + $t->decimal('paid_to_date', 13, 2)->nullable(); $t->timestamp('last_login')->nullable(); - $t->string('website'); + $t->string('website')->nullable(); $t->unsignedInteger('industry_id')->nullable(); $t->unsignedInteger('size_id')->nullable(); - $t->boolean('is_deleted'); - $t->integer('payment_terms'); + $t->boolean('is_deleted')->default(false); + $t->integer('payment_terms')->nullable(); $t->foreign('account_id')->references('id')->on('accounts')->onDelete('cascade'); $t->foreign('user_id')->references('id')->on('users')->onDelete('cascade'); @@ -273,18 +273,18 @@ class ConfideSetupUsersTable extends Migration { $t->timestamps(); $t->softDeletes(); - $t->boolean('is_primary'); - $t->boolean('send_invoice'); - $t->string('first_name'); - $t->string('last_name'); - $t->string('email'); - $t->string('phone'); + $t->boolean('is_primary')->default(0); + $t->boolean('send_invoice')->default(0); + $t->string('first_name')->nullable(); + $t->string('last_name')->nullable(); + $t->string('email')->nullable(); + $t->string('phone')->nullable(); $t->timestamp('last_login'); $t->foreign('client_id')->references('id')->on('clients')->onDelete('cascade'); $t->foreign('user_id')->references('id')->on('users')->onDelete('cascade');; - $t->unsignedInteger('public_id'); + $t->unsignedInteger('public_id')->nullable(); $t->unique( array('account_id','public_id') ); }); @@ -317,7 +317,7 @@ class ConfideSetupUsersTable extends Migration { $t->date('due_date')->nullable(); $t->text('terms'); $t->text('public_notes'); - $t->boolean('is_deleted'); + $t->boolean('is_deleted')->default(false); $t->boolean('is_recurring'); $t->unsignedInteger('frequency_id'); $t->date('start_date')->nullable(); @@ -354,7 +354,7 @@ class ConfideSetupUsersTable extends Migration { $t->timestamps(); $t->softDeletes(); - $t->string('transaction_reference'); + $t->string('transaction_reference')->nullable(); $t->timestamp('sent_date'); $t->timestamp('viewed_date'); @@ -445,7 +445,7 @@ class ConfideSetupUsersTable extends Migration { $t->timestamps(); $t->softDeletes(); - $t->boolean('is_deleted'); + $t->boolean('is_deleted')->default(false); $t->decimal('amount', 13, 2); $t->date('payment_date'); $t->string('transaction_reference'); @@ -472,7 +472,7 @@ class ConfideSetupUsersTable extends Migration { $t->timestamps(); $t->softDeletes(); - $t->boolean('is_deleted'); + $t->boolean('is_deleted')->default(false); $t->decimal('amount', 13, 2); $t->decimal('balance', 13, 2); $t->date('credit_date')->nullable(); @@ -495,17 +495,17 @@ class ConfideSetupUsersTable extends Migration { $t->unsignedInteger('account_id'); $t->unsignedInteger('client_id'); $t->unsignedInteger('user_id'); - $t->unsignedInteger('contact_id'); - $t->unsignedInteger('payment_id'); - $t->unsignedInteger('invoice_id'); - $t->unsignedInteger('credit_id'); - $t->unsignedInteger('invitation_id'); + $t->unsignedInteger('contact_id')->nullable(); + $t->unsignedInteger('payment_id')->nullable(); + $t->unsignedInteger('invoice_id')->nullable(); + $t->unsignedInteger('credit_id')->nullable(); + $t->unsignedInteger('invitation_id')->nullable(); - $t->text('message'); - $t->text('json_backup'); + $t->text('message')->nullable(); + $t->text('json_backup')->nullable(); $t->integer('activity_type_id'); - $t->decimal('adjustment', 13, 2); - $t->decimal('balance', 13, 2); + $t->decimal('adjustment', 13, 2)->nullable(); + $t->decimal('balance', 13, 2)->nullable(); $t->foreign('account_id')->references('id')->on('accounts')->onDelete('cascade'); $t->foreign('client_id')->references('id')->on('clients')->onDelete('cascade'); diff --git a/app/database/migrations/2014_04_17_145108_add_custom_fields.php b/app/database/migrations/2014_04_17_145108_add_custom_fields.php index c6c1360823ae..f6ff7c8f45a1 100644 --- a/app/database/migrations/2014_04_17_145108_add_custom_fields.php +++ b/app/database/migrations/2014_04_17_145108_add_custom_fields.php @@ -26,8 +26,8 @@ class AddCustomFields extends Migration { Schema::table('clients', function($table) { - $table->string('custom_value1'); - $table->string('custom_value2'); + $table->string('custom_value1')->nullable(); + $table->string('custom_value2')->nullable(); }); } diff --git a/app/database/migrations/2014_05_17_175626_add_quotes.php b/app/database/migrations/2014_05_17_175626_add_quotes.php index 5079117d7ba2..6299ad124dc0 100644 --- a/app/database/migrations/2014_05_17_175626_add_quotes.php +++ b/app/database/migrations/2014_05_17_175626_add_quotes.php @@ -14,7 +14,7 @@ class AddQuotes extends Migration { { Schema::table('invoices', function($table) { - $table->boolean('is_quote'); + $table->boolean('is_quote')->default(0); $table->unsignedInteger('quote_id')->nullable(); $table->unsignedInteger('quote_invoice_id')->nullable(); }); From 686be0852b7c735c207f3403827dceccd719b0dc Mon Sep 17 00:00:00 2001 From: Samuel De Backer Date: Tue, 26 Aug 2014 10:30:45 +0200 Subject: [PATCH 4/8] nullable added to some fields --- ...13_11_05_180133_confide_setup_users_table.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/app/database/migrations/2013_11_05_180133_confide_setup_users_table.php b/app/database/migrations/2013_11_05_180133_confide_setup_users_table.php index a5d50635c8c4..65326c575b82 100755 --- a/app/database/migrations/2013_11_05_180133_confide_setup_users_table.php +++ b/app/database/migrations/2013_11_05_180133_confide_setup_users_table.php @@ -395,7 +395,7 @@ class ConfideSetupUsersTable extends Migration { $t->string('product_key'); $t->text('notes'); $t->decimal('cost', 13, 2); - $t->decimal('qty', 13, 2); + $t->decimal('qty', 13, 2)->nullable(); $t->foreign('account_id')->references('id')->on('accounts')->onDelete('cascade'); $t->foreign('user_id')->references('id')->on('users')->onDelete('cascade');; @@ -418,10 +418,10 @@ class ConfideSetupUsersTable extends Migration { $t->string('product_key'); $t->text('notes'); $t->decimal('cost', 13, 2); - $t->decimal('qty', 13, 2); + $t->decimal('qty', 13, 2)->nullable(); - $t->string('tax_name'); - $t->decimal('tax_rate', 13, 2); + $t->string('tax_name')->nullable(); + $t->decimal('tax_rate', 13, 2)->nullable(); $t->foreign('invoice_id')->references('id')->on('invoices')->onDelete('cascade'); $t->foreign('product_id')->references('id')->on('products'); @@ -447,9 +447,9 @@ class ConfideSetupUsersTable extends Migration { $t->boolean('is_deleted')->default(false); $t->decimal('amount', 13, 2); - $t->date('payment_date'); - $t->string('transaction_reference'); - $t->string('payer_id'); + $t->date('payment_date')->nullable(); + $t->string('transaction_reference')->nullable(); + $t->string('payer_id')->nullable(); $t->foreign('invoice_id')->references('id')->on('invoices'); $t->foreign('account_id')->references('id')->on('accounts')->onDelete('cascade'); @@ -476,7 +476,7 @@ class ConfideSetupUsersTable extends Migration { $t->decimal('amount', 13, 2); $t->decimal('balance', 13, 2); $t->date('credit_date')->nullable(); - $t->string('credit_number'); + $t->string('credit_number')->nullable(); $t->text('private_notes'); $t->foreign('account_id')->references('id')->on('accounts')->onDelete('cascade'); From 8edb063b30e82dcb56650e24aa4b1cbb49ff3fc7 Mon Sep 17 00:00:00 2001 From: Samuel De Backer Date: Tue, 26 Aug 2014 10:32:14 +0200 Subject: [PATCH 5/8] default integer value for payment_terms Because sending an empty string to a integer column is not allowed with MySQL in STRICT_TRANS_TABLE mode. --- app/controllers/ClientController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/ClientController.php b/app/controllers/ClientController.php index 6acbb50c80b4..10f427c1010a 100755 --- a/app/controllers/ClientController.php +++ b/app/controllers/ClientController.php @@ -212,7 +212,7 @@ class ClientController extends \BaseController { $client->size_id = Input::get('size_id') ? Input::get('size_id') : null; $client->industry_id = Input::get('industry_id') ? Input::get('industry_id') : null; $client->currency_id = Input::get('currency_id') ? Input::get('currency_id') : 1; - $client->payment_terms = Input::get('payment_terms'); + $client->payment_terms = Input::get('payment_terms') ? : 0; $client->website = trim(Input::get('website')); $client->save(); From 30c65f4a23ddbe9bd753d221068b8f300454cc5a Mon Sep 17 00:00:00 2001 From: Samuel De Backer Date: Tue, 26 Aug 2014 10:36:53 +0200 Subject: [PATCH 6/8] simpler short conditionnal MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit “Since PHP 5.3, it is possible to leave out the middle part of the ternary operator. Expression expr1 ?: expr3 returns expr1 if expr1 evaluates to TRUE, and expr3 otherwise.” http://php.net/manual/en/language.operators.comparison.php --- app/controllers/ClientController.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/controllers/ClientController.php b/app/controllers/ClientController.php index 10f427c1010a..a01c93d40e6a 100755 --- a/app/controllers/ClientController.php +++ b/app/controllers/ClientController.php @@ -207,11 +207,11 @@ class ClientController extends \BaseController { $client->city = trim(Input::get('city')); $client->state = trim(Input::get('state')); $client->postal_code = trim(Input::get('postal_code')); - $client->country_id = Input::get('country_id') ? Input::get('country_id') : null; + $client->country_id = Input::get('country_id') ? : null; $client->private_notes = trim(Input::get('private_notes')); - $client->size_id = Input::get('size_id') ? Input::get('size_id') : null; - $client->industry_id = Input::get('industry_id') ? Input::get('industry_id') : null; - $client->currency_id = Input::get('currency_id') ? Input::get('currency_id') : 1; + $client->size_id = Input::get('size_id') ? : null; + $client->industry_id = Input::get('industry_id') ? : null; + $client->currency_id = Input::get('currency_id') ? : 1; $client->payment_terms = Input::get('payment_terms') ? : 0; $client->website = trim(Input::get('website')); From 3273eea39f09b47e5aad6d0dac0ddb86f8b1b345 Mon Sep 17 00:00:00 2001 From: Samuel De Backer Date: Tue, 26 Aug 2014 10:37:47 +0200 Subject: [PATCH 7/8] 3 constants taken from config --- app/routes.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/routes.php b/app/routes.php index e5685f90fbb8..5fee13bc0776 100755 --- a/app/routes.php +++ b/app/routes.php @@ -136,9 +136,9 @@ Route::group(array('prefix' => 'api/v1', 'before' => 'auth.basic'), function() Route::post('api/hooks', 'IntegrationController@subscribe'); }); -define('CONTACT_EMAIL', 'contact@invoiceninja.com'); -define('CONTACT_NAME', 'Invoice Ninja'); -define('SITE_URL', 'https://www.invoiceninja.com'); +define('CONTACT_EMAIL', Config::get('mail.from.address')); +define('CONTACT_NAME', Config::get('mail.from.name')); +define('SITE_URL', Config::get('app.url')); define('ENV_DEVELOPMENT', 'local'); define('ENV_STAGING', 'staging'); From 47455dc058b2d9668ef7f606307f2f121d19359b Mon Sep 17 00:00:00 2001 From: Samuel De Backer Date: Tue, 26 Aug 2014 10:39:17 +0200 Subject: [PATCH 8/8] Hardcoded urls removed in mail templates --- app/views/emails/invoice_html.blade.php | 4 ++-- app/views/emails/invoice_text.blade.php | 4 ++-- app/views/emails/payment_confirmation_html.blade.php | 4 ++-- app/views/emails/payment_confirmation_text.blade.php | 4 ++-- app/views/master.blade.php | 6 +++--- 5 files changed, 11 insertions(+), 11 deletions(-) diff --git a/app/views/emails/invoice_html.blade.php b/app/views/emails/invoice_html.blade.php index 8c32f6bfab12..bb36f663bd02 100755 --- a/app/views/emails/invoice_html.blade.php +++ b/app/views/emails/invoice_html.blade.php @@ -19,8 +19,8 @@ @if ($showNinjaFooter)

- {{ trans('texts.ninja_email_footer', ['site' => 'Invoice Ninja']) }} + {{ trans('texts.ninja_email_footer', ['site' => 'Invoice Ninja']) }} @endif - \ No newline at end of file + diff --git a/app/views/emails/invoice_text.blade.php b/app/views/emails/invoice_text.blade.php index 954cfcf925ef..24b797e48e2e 100755 --- a/app/views/emails/invoice_text.blade.php +++ b/app/views/emails/invoice_text.blade.php @@ -12,5 +12,5 @@ @if ($showNinjaFooter) {{ trans('texts.ninja_email_footer', ['site' => 'Invoice Ninja']) }} -https://www.invoiceninja.com -@endif \ No newline at end of file +{{ SITE_URL }} +@endif diff --git a/app/views/emails/payment_confirmation_html.blade.php b/app/views/emails/payment_confirmation_html.blade.php index 9f224df389d7..aabca1ac0d5d 100644 --- a/app/views/emails/payment_confirmation_html.blade.php +++ b/app/views/emails/payment_confirmation_html.blade.php @@ -18,8 +18,8 @@ @if ($showNinjaFooter)

- {{ trans('texts.ninja_email_footer', ['site' => 'Invoice Ninja']) }} + {{ trans('texts.ninja_email_footer', ['site' => 'Invoice Ninja']) }} @endif - \ No newline at end of file + diff --git a/app/views/emails/payment_confirmation_text.blade.php b/app/views/emails/payment_confirmation_text.blade.php index 9b6b7384812b..92191ad8a0ba 100644 --- a/app/views/emails/payment_confirmation_text.blade.php +++ b/app/views/emails/payment_confirmation_text.blade.php @@ -11,5 +11,5 @@ @if ($showNinjaFooter) {{ trans('texts.ninja_email_footer', ['site' => 'Invoice Ninja']) }} -https://www.invoiceninja.com -@endif \ No newline at end of file +{{ SITE_URL }} +@endif diff --git a/app/views/master.blade.php b/app/views/master.blade.php index 92c802cc6476..707b8f4e9f1f 100755 --- a/app/views/master.blade.php +++ b/app/views/master.blade.php @@ -9,9 +9,9 @@ - + - + @@ -20,7 +20,7 @@ - +