1
0
mirror of https://github.com/e107inc/e107.git synced 2025-03-14 01:19:44 +01:00

Fix for root namespace with e_url.php

This commit is contained in:
Cameron 2017-04-16 11:40:10 -07:00
parent 57e8b8f06b
commit 519f09d401

View File

@ -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.