aboutsummaryrefslogtreecommitdiff
path: root/h-source/Library/Theme.php
diff options
context:
space:
mode:
authorDamien Zammit <damien@zamaudio.com>2021-08-10 19:16:48 +1000
committerDamien Zammit <damien@zamaudio.com>2021-08-10 19:48:07 +1000
commitf17018962bfc6cc38a0b2ccc5f40a939f5fe49fa (patch)
tree2eb11843b882af0b7a81a3dd70fcad9806bf3ebb /h-source/Library/Theme.php
parent75cfe0492776b8e4ab89912918929f845c92f74c (diff)
Use relative URLs instead of hardcoding domain
Diffstat (limited to 'h-source/Library/Theme.php')
-rwxr-xr-xh-source/Library/Theme.php6
1 files changed, 2 insertions, 4 deletions
diff --git a/h-source/Library/Theme.php b/h-source/Library/Theme.php
index 10c0fce..fe938ee 100755
--- a/h-source/Library/Theme.php
+++ b/h-source/Library/Theme.php
@@ -39,11 +39,9 @@ class Theme {
function __construct($controller) {
- $protocol = Params::$useHttps ? "https" : "http";
-
$this->controller = $controller;
- $this->baseUrl = MOD_REWRITE_MODULE === true ? "$protocol://" . DOMAIN_NAME : "$protocol://" . DOMAIN_NAME . '/index.php';
- $this->baseUrlSrc = "$protocol://" . DOMAIN_NAME;
+ $this->baseUrl = MOD_REWRITE_MODULE === true ? '': '/index.php';
+ $this->baseUrlSrc = '';
}