mirror of
https://github.com/wallabag/wallabag.git
synced 2024-05-31 23:48:06 +00:00
Use config option BASE_URL in getPocheUrl()
This commit is contained in:
parent
7d6bd5670e
commit
6e22fc17d2
|
@ -72,8 +72,14 @@ final class Tools
|
|||
$serverport = '';
|
||||
}
|
||||
|
||||
return 'http' . ($https ? 's' : '') . '://'
|
||||
. $host . $serverport . $scriptname;
|
||||
// check if BASE_URL is configured
|
||||
if(BASE_URL != null && BASE_URL != '') {
|
||||
$baseUrl = BASE_URL;
|
||||
} else {
|
||||
$baseUrl = 'http' . ($https ? 's' : '') . '://' . $host . $serverport;
|
||||
}
|
||||
|
||||
return $baseUrl . $scriptname;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue