aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/admin
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/admin')
-rw-r--r--phpBB/admin/admin_words.php19
-rw-r--r--phpBB/admin/pagestart.php7
2 files changed, 6 insertions, 20 deletions
diff --git a/phpBB/admin/admin_words.php b/phpBB/admin/admin_words.php
index 628e0318f3..fb92a75785 100644
--- a/phpBB/admin/admin_words.php
+++ b/phpBB/admin/admin_words.php
@@ -167,25 +167,6 @@ if ($mode != '')
}
- $sql = "SELECT *
- FROM " . WORDS_TABLE . "
- ORDER BY word";
- $result = $db->sql_query($sql);
-
- if ($row = $db->sql_fetchrow($result))
- {
- $censors = array();
- do
- {
- $censors['match'][] = '#\b(' . str_replace('\*', '\w*?', preg_quote($row['word'], '#')) . ')\b#i';
- $censors['replace'][] = $row['replacement'];
- }
- while ($row = $db->sql_fetchrow($result));
-
- $cache->put('word_censors', $censors);
- }
- $db->sql_freeresult($result);
-
trigger_error($message);
}
diff --git a/phpBB/admin/pagestart.php b/phpBB/admin/pagestart.php
index 9460f86582..e2096baf4f 100644
--- a/phpBB/admin/pagestart.php
+++ b/phpBB/admin/pagestart.php
@@ -101,7 +101,7 @@ td.cat { background-image: url('images/cellpic1.gif') }
function page_footer($copyright_html = true)
{
- global $config, $db, $phpEx;
+ global $cache, $config, $db, $phpEx;
// Close our DB connection.
$db->sql_close();
@@ -127,6 +127,11 @@ function page_footer($copyright_html = true)
}
+ if (!empty($cache))
+ {
+ $cache->save_cache();
+ }
+
exit;
}