From e0ef12b0954d085fa0620e2414ceb24e88121c12 Mon Sep 17 00:00:00 2001 From: cash Date: Sat, 19 Feb 2011 03:05:45 +0000 Subject: 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 --- mod/thewire/tests/regex.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'mod/thewire/tests/regex.php') 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 "wwwroot}pg/thewire/owner/$username\">@$username"; + $url = "pg/thewire/owner/$username"; + $url = elgg_normalize_url($url); + return "@$username"; } protected function getHashtagLink($tag) { - global $CONFIG; - return "wwwroot}pg/thewire/tag/$tag\">#$tag"; + $url = "pg/thewire/tag/$tag"; + $url = elgg_normalize_url($url); + return "#$tag"; } protected function getEmailLink($address) { -- cgit v1.2.3