mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-31 09:54:34 -04:00
Fixes for demo mode in l8
This commit is contained in:
parent
3fa336946f
commit
b94bfacc19
@ -18,8 +18,10 @@ use App\Factory\InvoiceItemFactory;
|
|||||||
use App\Helpers\Invoice\InvoiceSum;
|
use App\Helpers\Invoice\InvoiceSum;
|
||||||
use App\Jobs\Ninja\CompanySizeCheck;
|
use App\Jobs\Ninja\CompanySizeCheck;
|
||||||
use App\Jobs\Util\VersionCheck;
|
use App\Jobs\Util\VersionCheck;
|
||||||
|
use App\Models\Account;
|
||||||
use App\Models\Client;
|
use App\Models\Client;
|
||||||
use App\Models\ClientContact;
|
use App\Models\ClientContact;
|
||||||
|
use App\Models\Company;
|
||||||
use App\Models\CompanyToken;
|
use App\Models\CompanyToken;
|
||||||
use App\Models\Country;
|
use App\Models\Country;
|
||||||
use App\Models\Credit;
|
use App\Models\Credit;
|
||||||
|
@ -16,8 +16,18 @@ use App\Models\Client;
|
|||||||
|
|
||||||
class Helpers
|
class Helpers
|
||||||
{
|
{
|
||||||
public static function sharedEmailVariables(Client $client, array $settings = null): array
|
public static function sharedEmailVariables(?Client $client, array $settings = null): array
|
||||||
{
|
{
|
||||||
|
if(!$client){
|
||||||
|
|
||||||
|
$elements['signature'] = '';
|
||||||
|
$elements['settings'] = new \stdClass;
|
||||||
|
$elements['whitelabel'] = true;
|
||||||
|
|
||||||
|
return $elements;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
$_settings = is_null($settings) ? $client->getMergedSettings() : $settings;
|
$_settings = is_null($settings) ? $client->getMergedSettings() : $settings;
|
||||||
|
|
||||||
$elements['signature'] = $_settings->email_signature;
|
$elements['signature'] = $_settings->email_signature;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user