From: quix0r Date: Sat, 14 Mar 2009 19:09:54 +0000 (+0000) Subject: Possible fix for uncomplete rewritten links X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=2d9b306c3a3c908c1c8187c80f227ec2ab7202b0;p=mailer.git Possible fix for uncomplete rewritten links --- 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