diff options
author | Maryana Rozhankivska <mariroz@mr.lviv.ua> | 2014-04-08 11:49:41 +0300 |
---|---|---|
committer | Maryana Rozhankivska <mariroz@mr.lviv.ua> | 2014-04-08 11:49:41 +0300 |
commit | a8ef1f3f43236908fdabebf795cf7de370b538ec (patch) | |
tree | 953902d96e26c90f3edaf97879daf86fdbc6ed68 /inc/poche/Tools.class.php | |
parent | 86da39886d11e6058199fc7da5adc24d1f84cb76 (diff) | |
parent | a7f39918bf67f189e30381fbbde95184b2f618fa (diff) | |
download | wallabag-a8ef1f3f43236908fdabebf795cf7de370b538ec.tar.gz wallabag-a8ef1f3f43236908fdabebf795cf7de370b538ec.tar.zst wallabag-a8ef1f3f43236908fdabebf795cf7de370b538ec.zip |
code formatting changes: tabs replaced with spaces, some other small formatting enhancements
Diffstat (limited to 'inc/poche/Tools.class.php')
-rwxr-xr-x | inc/poche/Tools.class.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/inc/poche/Tools.class.php b/inc/poche/Tools.class.php index a130e94b..7f064020 100755 --- a/inc/poche/Tools.class.php +++ b/inc/poche/Tools.class.php | |||
@@ -59,8 +59,10 @@ class Tools | |||
59 | return $scriptname; | 59 | return $scriptname; |
60 | } | 60 | } |
61 | 61 | ||
62 | $host = (isset($_SERVER['HTTP_X_FORWARDED_HOST']) ? $_SERVER['HTTP_X_FORWARDED_HOST'] : (isset($_SERVER['HTTP_HOST']) ? $_SERVER['HTTP_HOST'] : $_SERVER['SERVER_NAME'])); | ||
63 | |||
62 | return 'http' . ($https ? 's' : '') . '://' | 64 | return 'http' . ($https ? 's' : '') . '://' |
63 | . $_SERVER["HTTP_HOST"] . $serverport . $scriptname; | 65 | . $host . $serverport . $scriptname; |
64 | } | 66 | } |
65 | 67 | ||
66 | public static function redirect($url = '') | 68 | public static function redirect($url = '') |