From: Brion Vibber Date: Wed, 5 Oct 2005 01:32:55 +0000 (+0000) Subject: * (bug 3598) Update message cache on message page deletion, patch by Tietew X-Git-Tag: 1.6.0~1542 X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=commitdiff_plain;h=012b17de2b9333f5a078b589734019d96295e1b9;p=lhc%2Fweb%2Fwiklou.git * (bug 3598) Update message cache on message page deletion, patch by Tietew --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 5a187dd4b3..d1b44573bc 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -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 === diff --git a/includes/Article.php b/includes/Article.php index b8e38e1dd7..6775cff7ce 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -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) {