forked from wallabag/wallabag
Use config option BASE_URL in getPocheUrl()
This commit is contained in:
@ -72,8 +72,14 @@ final class Tools
|
|||||||
$serverport = '';
|
$serverport = '';
|
||||||
}
|
}
|
||||||
|
|
||||||
return 'http' . ($https ? 's' : '') . '://'
|
// check if BASE_URL is configured
|
||||||
. $host . $serverport . $scriptname;
|
if(BASE_URL != null && BASE_URL != '') {
|
||||||
|
$baseUrl = BASE_URL;
|
||||||
|
} else {
|
||||||
|
$baseUrl = 'http' . ($https ? 's' : '') . '://' . $host . $serverport;
|
||||||
|
}
|
||||||
|
|
||||||
|
return $baseUrl . $scriptname;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user