Possible fix for uncomplete rewritten links
authorRoland Häder <roland@mxchange.org>
Sat, 14 Mar 2009 19:09:54 +0000 (19:09 +0000)
committerRoland Häder <roland@mxchange.org>
Sat, 14 Mar 2009 19:09:54 +0000 (19:09 +0000)
inc/libs/rewrite_functions.php

index 9ff0ff623bbf59d4e341498777938a7ede5d7c68..197a46ad7bf313a1d2f5246924accad8e429cf0f 100644 (file)
@@ -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