From be958eb708283981a35ba8aa27e7ba8f53221107 Mon Sep 17 00:00:00 2001 From: Cameron Date: Wed, 12 Aug 2020 14:09:42 -0700 Subject: [PATCH] Allow SEF-URL generation to function in CLI mode without 'e_MOD_REWRITE' enabled. (must still be 'active' in prefs) --- e107_handlers/e107_class.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/e107_handlers/e107_class.php b/e107_handlers/e107_class.php index b90bf9230..3cc3918c0 100644 --- a/e107_handlers/e107_class.php +++ b/e107_handlers/e107_class.php @@ -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);