* (bug 3598) Update message cache on message page deletion, patch by Tietew
authorBrion Vibber <brion@users.mediawiki.org>
Wed, 5 Oct 2005 01:32:55 +0000 (01:32 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Wed, 5 Oct 2005 01:32:55 +0000 (01:32 +0000)
RELEASE-NOTES
includes/Article.php

index 5a187dd..d1b4457 100644 (file)
@@ -126,7 +126,8 @@ fully support the editing toolbar, but was found to be too confusing.
   for a place to add in captcha-type extensions in the edit flow
 * Added filter options, compression piping, and multiple output streams for
   dumpBackup.php
-* Warn and abort if importDump.php called in read-only mode.
+* (bug 3595) Warn and abort if importDump.php called in read-only mode.
+* (bug 3598) Update message cache on message page deletion, patch by Tietew
 
 
 === Caveats ===
index b8e38e1..6775cff 100644 (file)
@@ -2397,8 +2397,14 @@ class Article {
                }
        }
 
-       function onArticleDelete($title_obj) {
-               $title_obj->touchLinks();
+       function onArticleDelete( $title ) {
+               global $wgMessageCache;
+               
+               $title->touchLinks();
+               
+               if( $title->getNamespace() == NS_MEDIAWIKI) {
+                       $wgMessageCache->replace( $title->getDBkey(), false );
+               }
        }
 
        function onArticleEdit($title_obj) {