From 1501ccfda5ff9387df5de9850a7931ab28032acc Mon Sep 17 00:00:00 2001 From: Cameron Date: Wed, 22 May 2019 13:57:51 -0700 Subject: [PATCH] Clear cache after core update --- class2.php | 15 +++++++++++---- e107_admin/update_routines.php | 1 + 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/class2.php b/class2.php index 0fd562450..12282bb39 100755 --- a/class2.php +++ b/class2.php @@ -227,6 +227,16 @@ if(isset($CLASS2_INCLUDE) && ($CLASS2_INCLUDE!='')) require_once(e_ROOT.$CLASS2_INCLUDE); } +if(empty($HANDLERS_DIRECTORY)) +{ + $HANDLERS_DIRECTORY = 'e107_handlers/'; +} + +if(empty($PLUGINS_DIRECTORY)) +{ + $PLUGINS_DIRECTORY = 'e107_plugins/'; +} + //define("MPREFIX", $mySQLprefix); moved to $e107->set_constants() if(empty($mySQLdefaultdb)) @@ -247,10 +257,7 @@ unset($tmpPlugDir); // clever stuff that figures out where the paths are on the fly.. no more need for hard-coded e_HTTP :) // -if(empty($HANDLERS_DIRECTORY)) -{ - $HANDLERS_DIRECTORY = 'e107_handlers/'; -} + $tmp = e_ROOT.$HANDLERS_DIRECTORY; diff --git a/e107_admin/update_routines.php b/e107_admin/update_routines.php index 87a394a5a..d01298eee 100644 --- a/e107_admin/update_routines.php +++ b/e107_admin/update_routines.php @@ -209,6 +209,7 @@ class e107Update else { $mes->add($message, E_MESSAGE_SUCCESS); + e107::getCache()->clear_sys('Update_core'); } } }