1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-03 21:27:25 +02:00

Bugtracker #4270; clear news cache on activate/deactivate trackback

This commit is contained in:
e107steved
2007-12-26 14:20:00 +00:00
parent 9162ce692a
commit 12f718ad92

View File

@@ -11,9 +11,9 @@
| GNU General Public License (http://gnu.org). | GNU General Public License (http://gnu.org).
| |
| $Source: /cvs_backup/e107_0.8/e107_plugins/trackback/admin_config.php,v $ | $Source: /cvs_backup/e107_0.8/e107_plugins/trackback/admin_config.php,v $
| $Revision: 1.1.1.1 $ | $Revision: 1.2 $
| $Date: 2006-12-02 04:35:43 $ | $Date: 2007-12-26 14:19:54 $
| $Author: mcfly_e107 $ | $Author: e107steved $
+----------------------------------------------------------------------------+ +----------------------------------------------------------------------------+
*/ */
require_once("../../class2.php"); require_once("../../class2.php");
@@ -27,11 +27,16 @@ if (!getperms("P")) {
require_once(e_ADMIN."auth.php"); require_once(e_ADMIN."auth.php");
if (isset($_POST['updatesettings'])) { if (isset($_POST['updatesettings']))
{
if ($pref['trackbackEnabled'] != $_POST['trackbackEnabled'])
{
$pref['trackbackEnabled'] = $_POST['trackbackEnabled']; $pref['trackbackEnabled'] = $_POST['trackbackEnabled'];
$pref['trackbackString'] = $tp->toDB($_POST['trackbackString']); $e107cache->clear("news.php");
save_prefs(); }
$message = TRACKBACK_L4; $pref['trackbackString'] = $tp->toDB($_POST['trackbackString']);
save_prefs();
$message = TRACKBACK_L4;
} }