mirror of
https://github.com/e107inc/e107.git
synced 2025-07-30 19:30:25 +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');
|
||||
$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)
|
||||
{
|
||||
if(empty($pref['e_url_list'][$plug])) // disabled.
|
||||
|
Reference in New Issue
Block a user