mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 21:22:58 +01:00
Merge pull request #5548 from turbo124/v5-develop
Fixes for company domain
This commit is contained in:
commit
5f94787ce2
@ -423,7 +423,11 @@ class Company extends BaseModel
|
||||
public function domain()
|
||||
{
|
||||
if (Ninja::isNinja()) {
|
||||
return $this->subdomain . config('ninja.app_domain');
|
||||
|
||||
if($this->portal_mode == 'domain')
|
||||
return $this->portal_domain;
|
||||
|
||||
return "https://{$this->subdomain}" . config('ninja.app_domain');
|
||||
}
|
||||
|
||||
return config('ninja.app_url');
|
||||
|
@ -13,7 +13,7 @@ return [
|
||||
'debug_enabled' => env('APP_DEBUG', false),
|
||||
'require_https' => env('REQUIRE_HTTPS', true),
|
||||
'app_url' => rtrim(env('APP_URL', ''), '/'),
|
||||
'app_domain' => env('APP_DOMAIN', ''),
|
||||
'app_domain' => env('APP_DOMAIN', 'invoicing.co'),
|
||||
'app_version' => '5.1.55',
|
||||
'app_tag' => '5.1.55-release',
|
||||
'minimum_client_version' => '5.0.16',
|
||||
|
Loading…
Reference in New Issue
Block a user