]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/rewrite_functions.php
Previous fix fixed, a lot constants rewritten (unfinished)
[mailer.git] / inc / libs / rewrite_functions.php
index 5a1929e6a2bd25f80e2b48a0441f192389980628..8a8d6f01fcf023e3c41b33677df8a7fd4b211bf1 100644 (file)
@@ -45,18 +45,18 @@ function REWRITE_LINKS ($HTML) {
        if (ereg($GLOBALS['module'], getConfig('rewrite_skip'))) return $HTML;
 
        // Strip slashes with double-backslashes for the preg_replace() function
-       $URL = str_replace("/", "\\/", URL);
+       $URL = str_replace("/", "\\/", constant('URL'));
 
        // Generate target URL
-       $target = URL."/cms/";
+       $target = constant('URL')."/cms/";
 
        // Convert modules.php?module=...
        $test = preg_replace("/".$URL."\\/modules.php\\?module=/i", $target, $HTML);
 
        if (eregi(SERVER_URL, $test)) {
                // Konvert URLs from my server
-               $URL = str_replace("/", "\\/", SERVER_URL);
-               $test = preg_replace("/".$URL."\\/modules.php\\?module=/i", SERVER_URL."/cms/", $test);
+               $URL = str_replace("/", "\\/", constant('SERVER_URL'));
+               $test = preg_replace("/".$URL."\\/modules.php\\?module=/i", constant('SERVER_URL')."/cms/", $test);
        } // END - if
 
        // Strip slashes as above for the main URL