From 09e3e32ca95ec4dcd12b5c249b5cd01a4b4153db Mon Sep 17 00:00:00 2001 From: Cameron Date: Sun, 19 Jan 2020 11:44:30 -0800 Subject: [PATCH] Warning removal. Define e_PAGE when e_url.php is active. --- e107_handlers/application.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/e107_handlers/application.php b/e107_handlers/application.php index 8f0cae6bd..d7a2aae44 100644 --- a/e107_handlers/application.php +++ b/e107_handlers/application.php @@ -183,7 +183,10 @@ class e_url define('e_CURRENT_PLUGIN', $plug); define('e_QUERY', str_replace('&&', '&', $query)); // do not add to e107_class.php define('e_URL_LEGACY', $redirect); - + if(!defined('e_PAGE')) + { + define('e_PAGE', basename($file)); + } $this->_include= $file; return true; // exit;