aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/admin/admin_words.php
diff options
context:
space:
mode:
authorLudovic Arnaud <ludovic_arnaud@users.sourceforge.net>2003-01-11 22:56:49 +0000
committerLudovic Arnaud <ludovic_arnaud@users.sourceforge.net>2003-01-11 22:56:49 +0000
commit85b196b5fe828c127d321527bd625a1727bad4aa (patch)
tree1557472b0431f05a4ae6b9e0fb42219d501ddefc /phpBB/admin/admin_words.php
parentd7e485e5f6fd5f52e8bda854c3ad67c5b53337ae (diff)
downloadforums-85b196b5fe828c127d321527bd625a1727bad4aa.tar
forums-85b196b5fe828c127d321527bd625a1727bad4aa.tar.gz
forums-85b196b5fe828c127d321527bd625a1727bad4aa.tar.bz2
forums-85b196b5fe828c127d321527bd625a1727bad4aa.tar.xz
forums-85b196b5fe828c127d321527bd625a1727bad4aa.zip
Implementation of an experimental cache manager.
git-svn-id: file:///svn/phpbb/trunk@3312 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/admin/admin_words.php')
-rw-r--r--phpBB/admin/admin_words.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/phpBB/admin/admin_words.php b/phpBB/admin/admin_words.php
index d4599191af..23a1d6a60f 100644
--- a/phpBB/admin/admin_words.php
+++ b/phpBB/admin/admin_words.php
@@ -132,6 +132,7 @@ if ($mode != '')
$sql = ($word_id) ? "UPDATE " . WORDS_TABLE . " SET word = '" . sql_quote($word) . "', replacement = '" . sql_quote($replacement) . "' WHERE word_id = $word_id" : "INSERT INTO " . WORDS_TABLE . " (word, replacement) VALUES ('" . sql_quote($word) . "', '" . sql_quote($replacement) . "')";
$db->sql_query($sql);
+ $cache->destroy('word_censors');
$log_action = ($word_id) ? 'log_edit_word' : 'log_add_word';
add_admin_log($log_action, stripslashes($word));
@@ -153,6 +154,7 @@ if ($mode != '')
$sql = "DELETE FROM " . WORDS_TABLE . "
WHERE word_id = $word_id";
$db->sql_query($sql);
+ $cache->destroy('word_censors');
add_admin_log('log_delete_word');