diff --git a/e107_plugins/faqs/controllers/list.php b/e107_plugins/faqs/controllers/e107.list.php similarity index 100% rename from e107_plugins/faqs/controllers/list.php rename to e107_plugins/faqs/controllers/e107.list.php diff --git a/e107_plugins/faqs/e_url.php b/e107_plugins/faqs/e_url.php new file mode 100644 index 000000000..36838a077 --- /dev/null +++ b/e107_plugins/faqs/e_url.php @@ -0,0 +1,36 @@ + '^faqs/?$', + 'redirect' => '{e_PLUGIN}faqs/faqs.php', + ); + + return $config; + } + +} \ No newline at end of file diff --git a/e107_plugins/faqs/faqs.php b/e107_plugins/faqs/faqs.php index 8b14731bd..4a06dcf24 100644 --- a/e107_plugins/faqs/faqs.php +++ b/e107_plugins/faqs/faqs.php @@ -14,9 +14,10 @@ * $Author$ */ - // SUBJECT OF REMOVAL - -require_once ("../../class2.php"); +if (!defined('e107_INIT')) +{ + require_once("../../class2.php"); +} if(file_exists(e_PLUGIN."faqs/controllers/list.php")) {