From 5d858b92235287e4ff693f53525b10ab6485e388 Mon Sep 17 00:00:00 2001 From: Victor Vasiliev Date: Tue, 17 Mar 2009 18:15:40 +0000 Subject: [PATCH] * (bug 18018) Deleting a file redirect leaves behind a malfunctioning redirect --- RELEASE-NOTES | 1 + includes/Article.php | 2 ++ 2 files changed, 3 insertions(+) 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 ); } /** -- 2.20.1