aboutsummaryrefslogtreecommitdiff
path: root/h-source/Library/Url.php
diff options
context:
space:
mode:
Diffstat (limited to 'h-source/Library/Url.php')
-rwxr-xr-xh-source/Library/Url.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/h-source/Library/Url.php b/h-source/Library/Url.php
index efb8e6e..5124047 100755
--- a/h-source/Library/Url.php
+++ b/h-source/Library/Url.php
@@ -27,9 +27,7 @@ class Url {
//get the url starting from the root folder
public static function getRoot($pathFromRootFolder = null) {
- $protocol = Params::$useHttps ? "https" : "http";
-
- $url = MOD_REWRITE_MODULE === true ? "$protocol://" . DOMAIN_NAME . '/' . $pathFromRootFolder : "$protocol://" . DOMAIN_NAME . '/index.php/' . $pathFromRootFolder;
+ $url = MOD_REWRITE_MODULE === true ? '/' . $pathFromRootFolder : '/index.php/' . $pathFromRootFolder;
return $url;
}