--- a/plugins/admin/LangManager.php Tue Jul 22 17:07:23 2008 -0500
+++ b/plugins/admin/LangManager.php Tue Jul 22 17:08:05 2008 -0500
@@ -16,6 +16,7 @@
{
global $db, $session, $paths, $template, $plugins; // Common objects
global $lang;
+ global $cache;
if ( $session->auth_level < USER_LEVEL_ADMIN || $session->user_level < USER_LEVEL_ADMIN )
{
$login_link = makeUrlNS('Special', 'Login/' . $paths->nslist['Special'] . 'Administration', 'level=' . USER_LEVEL_ADMIN, true);
@@ -494,6 +495,8 @@
if ( file_exists($cache_file) )
@unlink($cache_file);
+ $cache->purge("lang_{$lang_id}");
+
// Remove strings
$q = $db->sql_query('DELETE FROM ' . table_prefix . "language_strings WHERE lang_id = $lang_id;");
if ( !$q )