aboutsummaryrefslogtreecommitdiff
path: root/mod/thewire
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-19 03:05:45 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-19 03:05:45 +0000
commite0ef12b0954d085fa0620e2414ceb24e88121c12 (patch)
tree399d78e796a4dc79535322e0d66e3c3e2e62b4fa /mod/thewire
parent2dd0ecb8e13c48da7872a650d03a3aa006838aa9 (diff)
downloadelgg-e0ef12b0954d085fa0620e2414ceb24e88121c12.tar.gz
elgg-e0ef12b0954d085fa0620e2414ceb24e88121c12.tar.bz2
Fixes #2428 last of the $CONFIG removals. Anything missed can be individual tickets
git-svn-id: http://code.elgg.org/elgg/trunk@8305 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/thewire')
-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) {