mirror of
https://github.com/e107inc/e107.git
synced 2025-08-04 13:47:31 +02:00
Fix for root namespace with e_url.php
This commit is contained in:
@@ -109,6 +109,15 @@
|
|||||||
$rootNamespace = e107::getPref('url_main_module');
|
$rootNamespace = e107::getPref('url_main_module');
|
||||||
$replaceAlias = array('{alias}\/?','{alias}/?','{alias}\/','{alias}/',);
|
$replaceAlias = array('{alias}\/?','{alias}/?','{alias}\/','{alias}/',);
|
||||||
|
|
||||||
|
$plugs = array_keys($tmp);
|
||||||
|
|
||||||
|
if(in_array($rootNamespace,$plugs)) // Move rootnamespace check to the end of the list.
|
||||||
|
{
|
||||||
|
$v = $tmp[$rootNamespace];
|
||||||
|
unset($tmp[$rootNamespace]);
|
||||||
|
$tmp[$rootNamespace] = $v;
|
||||||
|
}
|
||||||
|
|
||||||
foreach($tmp as $plug=>$cfg)
|
foreach($tmp as $plug=>$cfg)
|
||||||
{
|
{
|
||||||
if(empty($pref['e_url_list'][$plug])) // disabled.
|
if(empty($pref['e_url_list'][$plug])) // disabled.
|
||||||
|
Reference in New Issue
Block a user