aboutsummaryrefslogtreecommitdiffhomepage
path: root/inc/poche/Tools.class.php
diff options
context:
space:
mode:
authorMaryana Rozhankivska <mariroz@mr.lviv.ua>2014-04-08 11:49:41 +0300
committerMaryana Rozhankivska <mariroz@mr.lviv.ua>2014-04-08 11:49:41 +0300
commita8ef1f3f43236908fdabebf795cf7de370b538ec (patch)
tree953902d96e26c90f3edaf97879daf86fdbc6ed68 /inc/poche/Tools.class.php
parent86da39886d11e6058199fc7da5adc24d1f84cb76 (diff)
parenta7f39918bf67f189e30381fbbde95184b2f618fa (diff)
downloadwallabag-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-xinc/poche/Tools.class.php4
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 = '')