mirror of
https://github.com/e107inc/e107.git
synced 2025-03-14 17:39:46 +01:00
Fix for root namespace with e_url.php
This commit is contained in:
parent
57e8b8f06b
commit
519f09d401
@ -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.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user