mirror of
https://github.com/wallabag/wallabag.git
synced 2025-08-06 17:41:01 +00:00
Use config option BASE_URL in getPocheUrl()
This commit is contained in:
parent
7d6bd5670e
commit
6e22fc17d2
1 changed files with 8 additions and 2 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue