* (bug 18018) Deleting a file redirect leaves behind a malfunctioning redirect
authorVictor Vasiliev <vasilievvv@users.mediawiki.org>
Tue, 17 Mar 2009 18:15:40 +0000 (18:15 +0000)
committerVictor Vasiliev <vasilievvv@users.mediawiki.org>
Tue, 17 Mar 2009 18:15:40 +0000 (18:15 +0000)
RELEASE-NOTES
includes/Article.php

index 61b4aff..0e4bace 100644 (file)
@@ -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
index d373093..0893451 100644 (file)
@@ -3310,6 +3310,8 @@ class Article {
                        $user = User::newFromName( $title->getText(), false );
                        $user->setNewtalk( false );
                }
+               # Image redirects
+               RepoGroup::singleton()->getLocalRepo()->invalidateImageRedirect( $title );
        }
 
        /**