1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-08 20:22:42 +01:00

Trim trailing slash from APP_URL

This commit is contained in:
Hillel Coren 2016-07-05 12:28:28 +03:00
parent e07301291b
commit 1fe671bffb

View File

@ -56,11 +56,11 @@ class Invitation extends EntityModel
*/
public function getLink($type = 'view', $forceOnsite = false)
{
if (!$this->account) {
if ( ! $this->account) {
$this->load('account');
}
$url = SITE_URL;
$url = trim(SITE_URL, '/');
$iframe_url = $this->account->iframe_url;
if ($this->account->hasFeature(FEATURE_CUSTOM_URL)) {