Merged r56745 from wmf-deployment, with an adjusted comment. Fixes image redirect...
authorTim Starling <tstarling@users.mediawiki.org>
Tue, 15 Dec 2009 03:22:19 +0000 (03:22 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Tue, 15 Dec 2009 03:22:19 +0000 (03:22 +0000)
includes/specials/SpecialMovepage.php

index 1bf1d48..fbefb3b 100644 (file)
@@ -544,6 +544,13 @@ class MovePageForm {
                        $wgUser->removeWatch( $ot );
                        $wgUser->removeWatch( $nt );
                }
+               
+               # Re-clear the file redirect cache, which may have been polluted by 
+               # parsing in messages above. See CR r56745.
+               # FIXME: needs a more robust solution inside FileRepo.
+               if( $ot->getNamespace() == NS_FILE ) {
+                       RepoGroup::singleton()->getLocalRepo()->invalidateImageRedirect( $ot );
+               }
        }
 
        function showLogFragment( $title, &$out ) {