aboutsummaryrefslogtreecommitdiff
path: root/h-source/admin/Application/Include/myFunctions.php
diff options
context:
space:
mode:
authorYuchen Pei <hi@ypei.me>2021-10-12 08:27:09 +1100
committerYuchen Pei <hi@ypei.me>2021-10-12 08:27:09 +1100
commit72cce24864b064b5762f4fe97fdf40d8d2ad4b51 (patch)
tree408f687c56f060aaac18622d2b091f6e080f76d4 /h-source/admin/Application/Include/myFunctions.php
parenta349d5115056f17496bba1f88f8043e87de6d9bd (diff)
parenta433241c0aff14110d1355f904d3dace8b6bae6b (diff)
Merge branch 'development' into h-node
Diffstat (limited to 'h-source/admin/Application/Include/myFunctions.php')
-rw-r--r--h-source/admin/Application/Include/myFunctions.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/h-source/admin/Application/Include/myFunctions.php b/h-source/admin/Application/Include/myFunctions.php
index ab32bbf..355c181 100644
--- a/h-source/admin/Application/Include/myFunctions.php
+++ b/h-source/admin/Application/Include/myFunctions.php
@@ -166,7 +166,7 @@ function getLinkToUser($user)
}
else
{
- return "<a href='http://".DOMAIN_NAME."/users/meet/".Lang::$current."/$user'>$user</a>";
+ return "<a href='/users/meet/".Lang::$current."/$user'>$user</a>";
}
}
@@ -271,7 +271,7 @@ function linkToNotebook($match)
$hardware = new HardwareModel();
$clean['id_hard'] = (int)$match[2];
$name = encodeUrl($hardware->getTheModelName($clean['id_hard']));
- $href = "HTTP://".DOMAIN_NAME."/notebooks/view/".Lang::$current."/".$clean['id_hard']."/$name";
+ $href = "/notebooks/view/".Lang::$current."/".$clean['id_hard']."/$name";
return (strcmp($name,'') !== 0) ? "<a title = 'link to notebook $name: $href' href='$href'>".$name."</a>" : $match[0];
}
@@ -281,7 +281,7 @@ function linkToWifi($match)
$hardware = new HardwareModel();
$clean['id_hard'] = (int)$match[2];
$name = encodeUrl($hardware->getTheModelName($clean['id_hard']));
- $href = "HTTP://".DOMAIN_NAME."/wifi/view/".Lang::$current."/".$clean['id_hard']."/$name";
+ $href = "/wifi/view/".Lang::$current."/".$clean['id_hard']."/$name";
return (strcmp($name,'') !== 0) ? "<a title = 'link to wifi card $name: $href' href='$href'>".$name."</a>" : $match[0];
}
@@ -291,7 +291,7 @@ function linkToVideocard($match)
$hardware = new HardwareModel();
$clean['id_hard'] = (int)$match[2];
$name = encodeUrl($hardware->getTheModelName($clean['id_hard']));
- $href = "HTTP://".DOMAIN_NAME."/videocards/view/".Lang::$current."/".$clean['id_hard']."/$name";
+ $href = "/videocards/view/".Lang::$current."/".$clean['id_hard']."/$name";
return (strcmp($name,'') !== 0) ? "<a title = 'link to video card $name: $href' href='$href'>".$name."</a>" : $match[0];
}
@@ -309,10 +309,10 @@ function getMotivation($row,$controller)
$clean['id_hard'] = (int)$row['deletion']['id_duplicate'];
$hardware = new HardwareModel();
$name = encodeUrl($hardware->getTheModelName($clean['id_hard']));
- return "<b>duplication</b> of the model having id <b><a href='http://".DOMAIN_NAME."/".$controller."/view/".Lang::$current."/".$clean['id_hard']."/".$name."'>".$clean['id_hard']."</a></b>";
+ return "<b>duplication</b> of the model having id <b><a href='/".$controller."/view/".Lang::$current."/".$clean['id_hard']."/".$name."'>".$clean['id_hard']."</a></b>";
}
else
{
return "<b>".$row['deletion']['object']."</b>";
}
-} \ No newline at end of file
+}