From: Victor Vasiliev Date: Tue, 17 Mar 2009 18:15:40 +0000 (+0000) Subject: * (bug 18018) Deleting a file redirect leaves behind a malfunctioning redirect X-Git-Tag: 1.31.0-rc.0~42464 X-Git-Url: http://git.cyclocoop.org/%22.%24h.%22?a=commitdiff_plain;h=5d858b92235287e4ff693f53525b10ab6485e388;p=lhc%2Fweb%2Fwiklou.git * (bug 18018) Deleting a file redirect leaves behind a malfunctioning redirect --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 61b4affd54..0e4bace86b 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -276,6 +276,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * (bug 14990) Parser tests works again with PostgreSQL * (bug 11487) Special:Protectedpages doesn't list protections with pr_expiry IS NULL +* (bug 18018) Deleting a file redirect leaves behind a malfunctioning redirect == API changes in 1.15 == * (bug 16858) Revamped list=deletedrevs to make listing deleted contributions diff --git a/includes/Article.php b/includes/Article.php index d373093973..089345196f 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -3310,6 +3310,8 @@ class Article { $user = User::newFromName( $title->getText(), false ); $user->setNewtalk( false ); } + # Image redirects + RepoGroup::singleton()->getLocalRepo()->invalidateImageRedirect( $title ); } /**