mirror of
https://github.com/wallabag/wallabag.git
synced 2025-08-01 17:38:38 +00:00
Merge branch 'master' of git://github.com/DmitrySandalov/poche into DmitrySandalov-master
This commit is contained in:
commit
705f04937f
2 changed files with 3 additions and 3 deletions
|
@ -53,12 +53,12 @@ class Tools
|
|||
|
||||
$scriptname = str_replace('/index.php', '/', $_SERVER["SCRIPT_NAME"]);
|
||||
|
||||
if (!isset($_SERVER["SERVER_NAME"])) {
|
||||
if (!isset($_SERVER["HTTP_HOST"])) {
|
||||
return $scriptname;
|
||||
}
|
||||
|
||||
return 'http' . ($https ? 's' : '') . '://'
|
||||
. $_SERVER["SERVER_NAME"] . $serverport . $scriptname;
|
||||
. $_SERVER["HTTP_HOST"] . $serverport . $scriptname;
|
||||
}
|
||||
|
||||
public static function redirect($url = '')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue