mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04: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()
|
public function domain()
|
||||||
{
|
{
|
||||||
if (Ninja::isNinja()) {
|
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');
|
return config('ninja.app_url');
|
||||||
|
@ -13,7 +13,7 @@ return [
|
|||||||
'debug_enabled' => env('APP_DEBUG', false),
|
'debug_enabled' => env('APP_DEBUG', false),
|
||||||
'require_https' => env('REQUIRE_HTTPS', true),
|
'require_https' => env('REQUIRE_HTTPS', true),
|
||||||
'app_url' => rtrim(env('APP_URL', ''), '/'),
|
'app_url' => rtrim(env('APP_URL', ''), '/'),
|
||||||
'app_domain' => env('APP_DOMAIN', ''),
|
'app_domain' => env('APP_DOMAIN', 'invoicing.co'),
|
||||||
'app_version' => '5.1.55',
|
'app_version' => '5.1.55',
|
||||||
'app_tag' => '5.1.55-release',
|
'app_tag' => '5.1.55-release',
|
||||||
'minimum_client_version' => '5.0.16',
|
'minimum_client_version' => '5.0.16',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user