From 5ceaf268ba5434a7c6e003bc93c0720dcd6588a6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Sat, 14 Mar 2009 19:09:54 +0000 Subject: [PATCH] Possible fix for uncomplete rewritten links --- inc/libs/rewrite_functions.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/inc/libs/rewrite_functions.php b/inc/libs/rewrite_functions.php index 9ff0ff623b..197a46ad7b 100644 --- a/inc/libs/rewrite_functions.php +++ b/inc/libs/rewrite_functions.php @@ -48,15 +48,15 @@ function REWRITE_LINKS ($HTML) { if (eregi($GLOBALS['module'], getConfig('rewrite_skip')) !== false) return $HTML; // Generate target URL - $target = constant('URL')."/cms/"; + $target = "{!URL!}/cms/"; // Convert modules.php?module=... - $output = str_replace("/" . constant('URL') . "/modules.php?module=", $target, $HTML); + $output = str_replace("/" . "{!URL!}/modules.php?module=", $target, $HTML); // Do we have an URL linked to mxchange.org? if (eregi(constant('SERVER_URL'), $output)) { // Convert URLs from my server - $output = str_replace("/" . constant('URL') . "/modules.php?module=", constant('SERVER_URL')."/cms/", $output); + $output = str_replace("/" . "{!URL!}/modules.php?module=", constant('SERVER_URL')."/cms/", $output); } // END - if // Strip slashes as above for the main URL -- 2.39.5