From 012b17de2b9333f5a078b589734019d96295e1b9 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Wed, 5 Oct 2005 01:32:55 +0000 Subject: [PATCH] * (bug 3598) Update message cache on message page deletion, patch by Tietew --- RELEASE-NOTES | 3 ++- includes/Article.php | 10 ++++++++-- 2 files changed, 10 insertions(+), 3 deletions(-) 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) { -- 2.20.1