]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/rewrite_functions.php
A lot fixes to templates and missing functions added, more rewrites
[mailer.git] / inc / libs / rewrite_functions.php
index 8a8d6f01fcf023e3c41b33677df8a7fd4b211bf1..769fb7ad2f5cc8acb989766e59361de01c78c3f0 100644 (file)
@@ -39,8 +39,6 @@ if (!defined('__SECURITY')) {
 
 //
 function REWRITE_LINKS ($HTML) {
-       global $_CONFIG;
-
        // Skip rewriting for the admin area (which search engine may enter here???)
        if (ereg($GLOBALS['module'], getConfig('rewrite_skip'))) return $HTML;
 
@@ -85,7 +83,7 @@ function REWRITE_LINKS ($HTML) {
 
        // Simple from->to replacements
        $REPLACE = array(
-               'search'  => array("u_id", "url", "page", "offset", "mid", "bid", "sub", "home"),
+               'search'  => array("uid", "url", "page", "offset", "mid", "bid", "sub", "home"),
                'replace' => array("u"   , "url", "page", "offset", "m"  , "b"  , "s"  , "h")
        );
 
@@ -98,7 +96,7 @@ function REWRITE_LINKS ($HTML) {
        // Replace all array elements through
        foreach ($REPLACE['search'] as $k => $v) {
                if (eregi("$v=", $test)) {
-                       // Replace &u_id= with /u/
+                       // Replace &uid= with /u/
                        $test = preg_replace("/&".$v."=/i", "/".$REPLACE['replace'][$k]."/", $test);
                } // END - if
        } // END - foreach