bugfix url creation
Dieser Commit ist enthalten in:
Ursprung
5ea089c877
Commit
8d7ba936a1
3 geänderte Dateien mit 8 neuen und 6 gelöschten Zeilen
|
@ -53,7 +53,7 @@ class ModRewrite extends ModRewriteBase {
|
|||
*/
|
||||
public static function initialize($clientId) {
|
||||
mr_loadConfiguration($clientId, true);
|
||||
parent::initialize();
|
||||
parent::initialize($clientId);
|
||||
self::$_db = new DB_Contenido();
|
||||
self::$_lookupTable = array();
|
||||
}
|
||||
|
|
|
@ -312,9 +312,8 @@ SQL;
|
|||
}
|
||||
}
|
||||
ModRewriteDebugger::add($aNewStack, 'ModRewriteUrlStack->_chunkSetPrettyUrlParts() $aNewStack');
|
||||
|
||||
// merge stack data
|
||||
ModRewriteDebugger::add($this->_aStack, 'ModRewriteUrlStack->_chunkSetPrettyUrlParts() $this->_aStack');
|
||||
|
||||
$this->_aStack = array_merge($this->_aStack, $aNewStack);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
|
@ -523,7 +523,10 @@ function mr_buildGeneratedCode($code) {
|
|||
$code = str_replace('"front_content.php"', '"' . mr_buildNewUrl('front_content.php') . '"', $code);
|
||||
$code = str_replace("'front_content.php'", "'" . mr_buildNewUrl('front_content.php') . "'", $code);
|
||||
$code = preg_replace_callback("/([\"|\'|=])front_content\.php(.?|.+?)([\"|\'|>])/i", function($match) {
|
||||
return $match[1] . mr_buildNewUrl('front_content.php' . $match[2]) . $match[3];
|
||||
ModRewriteDebugger::add($match, 'mr_buildGeneratedCode() matches');
|
||||
$sHref = $match[1] . mr_buildNewUrl('front_content.php' . $match[2]) . $match[3];
|
||||
ModRewriteDebugger::add($sHref, 'mr_buildGeneratedCode() matches -> href');
|
||||
return $sHref;
|
||||
}, $code);
|
||||
|
||||
ModRewriteDebugger::add($code, 'mr_buildGeneratedCode() out');
|
||||
|
|
Laden …
In neuem Issue referenzieren