mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Trim trailing slash from APP_URL
This commit is contained in:
parent
e07301291b
commit
1fe671bffb
@ -56,11 +56,11 @@ class Invitation extends EntityModel
|
|||||||
*/
|
*/
|
||||||
public function getLink($type = 'view', $forceOnsite = false)
|
public function getLink($type = 'view', $forceOnsite = false)
|
||||||
{
|
{
|
||||||
if (!$this->account) {
|
if ( ! $this->account) {
|
||||||
$this->load('account');
|
$this->load('account');
|
||||||
}
|
}
|
||||||
|
|
||||||
$url = SITE_URL;
|
$url = trim(SITE_URL, '/');
|
||||||
$iframe_url = $this->account->iframe_url;
|
$iframe_url = $this->account->iframe_url;
|
||||||
|
|
||||||
if ($this->account->hasFeature(FEATURE_CUSTOM_URL)) {
|
if ($this->account->hasFeature(FEATURE_CUSTOM_URL)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user