1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-31 03:40:37 +02:00

Start of work on SEF toggle-switches for plugins.

This commit is contained in:
Cameron
2016-12-05 21:30:54 -08:00
parent a347a450ad
commit 5273f41ab1
2 changed files with 20 additions and 6 deletions

View File

@@ -96,6 +96,11 @@
foreach($tmp as $plug=>$cfg)
{
if(empty($pref['e_url_list'][$plug])) // disabled.
{
e107::getDebug()->log('e_URL for <b>'.$plug.'</b> disabled.');
continue;
}
foreach($cfg as $k=>$v)
{
@@ -125,7 +130,7 @@
$newLocation = preg_replace($regex, $v['redirect'], $req);
if($newLocation !=$req)
if($newLocation != $req)
{
$redirect = e107::getParser()->replaceConstants($newLocation);
list($file,$query) = explode("?",$redirect,2);