1
0
mirror of https://github.com/e107inc/e107.git synced 2025-05-06 20:25:25 +02:00

Allow SEF-URL generation to function in CLI mode without 'e_MOD_REWRITE' enabled. (must still be 'active' in prefs)

This commit is contained in:
Cameron 2020-08-12 14:09:42 -07:00
parent d0823f1b50
commit be958eb708

@ -3607,7 +3607,9 @@ class e107
$active = false;
}
if (deftrue('e_MOD_REWRITE') && ($active == true) && empty($options['legacy'])) // Search-Engine-Friendly URLs active.
$e_MOD_REWRITE = (self::isCli() !==true) ? deftrue('e_MOD_REWRITE') : true;
if ($e_MOD_REWRITE && ($active == true) && empty($options['legacy'])) // Search-Engine-Friendly URLs active.
{
$rawUrl = $tp->simpleParse($tmp[$plugin][$key]['sef'], $row);