From 77129d59b5fb6525f500a7a6ab5bab5b88257a2a Mon Sep 17 00:00:00 2001 From: Cameron Date: Sat, 15 Apr 2017 07:56:55 -0700 Subject: [PATCH] Fixes #2563 - Root namespace and e_url. --- index.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/index.php b/index.php index 2ac1e94ab..61119aaaa 100644 --- a/index.php +++ b/index.php @@ -84,7 +84,7 @@ } */ - + $sql->db_Mark_Time("Start Simple URL-ReWrite Routine"); // XXX Cache didn't bring much benefit. @@ -102,8 +102,9 @@ $req = (e_HTTP === '/') ? ltrim(e_REQUEST_URI,'/') : str_replace(e_HTTP,'', e_REQUEST_URI) ; - - if(count($tmp)) + + + if(count($tmp) && !empty($req)) { $rootNamespace = e107::getPref('url_main_module'); $replaceAlias = array('{alias}\/?','{alias}/?','{alias}\/','{alias}/',); @@ -318,8 +319,7 @@ - - + include_once(HEADERF); eFront::instance()->getResponse()->send('default', false, true);