]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/rewrite_functions.php
Several more constants rewritten to getConfig()
[mailer.git] / inc / libs / rewrite_functions.php
index 561d281f4e5b71aae3a395f47aa56bf6f5af689c..e6ca8694c995323a35220fd95957de7aa0d407bd 100644 (file)
@@ -48,21 +48,21 @@ function rewriteLinksInCode ($HTML) {
        if (eregi(getModule(), getConfig('rewrite_skip')) !== false) return $HTML;
 
        // Generate target URL
-       $target = "{!URL!}/cms/";
+       $target = "{?URL?}/cms/";
 
        // Convert modules.php?module=...
-       $output = str_replace(constant('URL') . "/modules.php?module=", $target, $HTML);
+       $output = str_replace(getConfig('URL') . "/modules.php?module=", $target, $HTML);
 
        // Convert modules.php?module=...
-       $output = str_replace("{!URL!}/modules.php?module=", $target, $output);
+       $output = str_replace("{?URL?}/modules.php?module=", $target, $output);
 
        // Do we have an URL linked to mxchange.org?
-       if (eregi(constant('SERVER_URL'), $output)) {
+       if (eregi(getConfig('SERVER_URL'), $output)) {
                // Convert URLs from my server
-               $output = str_replace("{!URL!}/modules.php?module=", constant('SERVER_URL')."/cms/", $output);
+               $output = str_replace("{?URL?}/modules.php?module=", getConfig('SERVER_URL') . '/cms/', $output);
 
                // Convert URLs from my server
-               $output = str_replace(constant('URL') . "/modules.php?module=", constant('SERVER_URL')."/cms/", $output);
+               $output = str_replace(getConfig('URL') . "/modules.php?module=", getConfig('SERVER_URL') . '/cms/', $output);
        } // END - if
 
        // Strip slashes as above for the main URL