mirror of
https://github.com/wallabag/wallabag.git
synced 2025-08-01 17:38:38 +00:00
Merge branch 'dev' of https://github.com/MoriTanosuke/wallabag into MoriTanosuke-dev
This commit is contained in:
commit
a754e1c3f0
2 changed files with 15 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue