From: Roland Häder 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=5ceaf268ba5434a7c6e003bc93c0720dcd6588a6;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