mirror of
https://github.com/e107inc/e107.git
synced 2025-08-01 20:30:39 +02:00
Bugtracker #4270; clear news cache on activate/deactivate trackback
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user