From 12f718ad92cbe206fcc4c95408f04082a86b5ae1 Mon Sep 17 00:00:00 2001 From: e107steved Date: Wed, 26 Dec 2007 14:20:00 +0000 Subject: [PATCH] Bugtracker #4270; clear news cache on activate/deactivate trackback --- e107_plugins/trackback/admin_config.php | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/e107_plugins/trackback/admin_config.php b/e107_plugins/trackback/admin_config.php index 7f1a5b062..4b6acd455 100644 --- a/e107_plugins/trackback/admin_config.php +++ b/e107_plugins/trackback/admin_config.php @@ -11,9 +11,9 @@ | GNU General Public License (http://gnu.org). | | $Source: /cvs_backup/e107_0.8/e107_plugins/trackback/admin_config.php,v $ -| $Revision: 1.1.1.1 $ -| $Date: 2006-12-02 04:35:43 $ -| $Author: mcfly_e107 $ +| $Revision: 1.2 $ +| $Date: 2007-12-26 14:19:54 $ +| $Author: e107steved $ +----------------------------------------------------------------------------+ */ require_once("../../class2.php"); @@ -27,11 +27,16 @@ if (!getperms("P")) { require_once(e_ADMIN."auth.php"); -if (isset($_POST['updatesettings'])) { +if (isset($_POST['updatesettings'])) +{ + if ($pref['trackbackEnabled'] != $_POST['trackbackEnabled']) + { $pref['trackbackEnabled'] = $_POST['trackbackEnabled']; - $pref['trackbackString'] = $tp->toDB($_POST['trackbackString']); - save_prefs(); - $message = TRACKBACK_L4; + $e107cache->clear("news.php"); + } + $pref['trackbackString'] = $tp->toDB($_POST['trackbackString']); + save_prefs(); + $message = TRACKBACK_L4; }