Made wfFindFile/wfLocalFile callers use explicit "latest" flags
[lhc/web/wiklou.git] / includes / specials / SpecialMovepage.php
index d488253..a519bd0 100644 (file)
@@ -537,6 +537,7 @@ class MovePageForm extends UnlistedSpecialPage {
                        // Delete an associated image if there is
                        if ( $nt->getNamespace() == NS_FILE ) {
                                $file = wfLocalFile( $nt );
+                               $file->load( File::READ_LATEST );
                                if ( $file->exists() ) {
                                        $file->delete( $reason, false, $user );
                                }