aboutsummaryrefslogtreecommitdiff
path: root/mod/thewire/tests
diff options
context:
space:
mode:
Diffstat (limited to 'mod/thewire/tests')
-rw-r--r--mod/thewire/tests/regex.php10
1 files changed, 6 insertions, 4 deletions
diff --git a/mod/thewire/tests/regex.php b/mod/thewire/tests/regex.php
index 9e187cf29..5b53c69d6 100644
--- a/mod/thewire/tests/regex.php
+++ b/mod/thewire/tests/regex.php
@@ -39,13 +39,15 @@ class TheWireRegexTest extends ElggCoreUnitTest {
}
protected function getUserWireLink($username) {
- global $CONFIG;
- return "<a href=\"{$CONFIG->wwwroot}pg/thewire/owner/$username\">@$username</a>";
+ $url = "pg/thewire/owner/$username";
+ $url = elgg_normalize_url($url);
+ return "<a href=\"$url\">@$username</a>";
}
protected function getHashtagLink($tag) {
- global $CONFIG;
- return "<a href=\"{$CONFIG->wwwroot}pg/thewire/tag/$tag\">#$tag</a>";
+ $url = "pg/thewire/tag/$tag";
+ $url = elgg_normalize_url($url);
+ return "<a href=\"$url\">#$tag</a>";
}
protected function getEmailLink($address) {