aboutsummaryrefslogtreecommitdiff
path: root/h-source/Library/Helper
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/Helper
parent75cfe0492776b8e4ab89912918929f845c92f74c (diff)
Use relative URLs instead of hardcoding domain
Diffstat (limited to 'h-source/Library/Helper')
-rwxr-xr-xh-source/Library/Helper/List.php2
-rwxr-xr-xh-source/Library/Helper/Menu.php2
-rwxr-xr-xh-source/Library/Helper/Popup.php4
3 files changed, 4 insertions, 4 deletions
diff --git a/h-source/Library/Helper/List.php b/h-source/Library/Helper/List.php
index ba59643..57aeeff 100755
--- a/h-source/Library/Helper/List.php
+++ b/h-source/Library/Helper/List.php
@@ -73,7 +73,7 @@ class Helper_List extends Helper_Html {
//get the generic language class
$this->strings = Factory_Strings::generic(Params::$language);
- $baseUrl = 'http://'.DOMAIN_NAME.'/Public/Img/Icons/elementary_2_5/';
+ $baseUrl = '/Public/Img/Icons/elementary_2_5/';
//set the files of the images
$this->submitImages = array(
diff --git a/h-source/Library/Helper/Menu.php b/h-source/Library/Helper/Menu.php
index 8fd4bf4..86ee24a 100755
--- a/h-source/Library/Helper/Menu.php
+++ b/h-source/Library/Helper/Menu.php
@@ -36,7 +36,7 @@ class Helper_Menu extends Helper_Html
public function __construct()
{
- $baseUrl = "http://".DOMAIN_NAME.'/Public/Img/Icons/elementary_2_5/';
+ $baseUrl = '/Public/Img/Icons/elementary_2_5/';
//get the generic language class
$this->strings = Factory_Strings::generic(Params::$language);
diff --git a/h-source/Library/Helper/Popup.php b/h-source/Library/Helper/Popup.php
index 18bb00d..43140fe 100755
--- a/h-source/Library/Helper/Popup.php
+++ b/h-source/Library/Helper/Popup.php
@@ -133,10 +133,10 @@ class Helper_Popup extends Helper_Html {
$returnString .= "</div>\n";
}
if (count($this->popupArray)>0) {
- $returnString .= "<script type=\"text/javascript\" src=\"http://".DOMAIN_NAME."/Public/Js/DisplayTag.js\"></script>\n";
+ $returnString .= "<script type=\"text/javascript\" src=\"/Public/Js/DisplayTag.js\"></script>\n";
}
}
return $returnString;
}
-} \ No newline at end of file
+}