From a74a4bace33214175185028af12a2c65204be357 Mon Sep 17 00:00:00 2001 From: Cameron Date: Fri, 23 Jan 2015 15:26:23 -0800 Subject: [PATCH] Added simple e_url.php example. --- .../controllers/{list.php => e107.list.php} | 0 e107_plugins/faqs/e_url.php | 36 +++++++++++++++++++ e107_plugins/faqs/faqs.php | 7 ++-- 3 files changed, 40 insertions(+), 3 deletions(-) rename e107_plugins/faqs/controllers/{list.php => e107.list.php} (100%) create mode 100644 e107_plugins/faqs/e_url.php 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")) {