Replace get{Local,Full,Link,Canonical}URL's $variant argument with a secondary $query...
[lhc/web/wiklou.git] / includes / WikiFilePage.php
index 87b5487..e2096b3 100644 (file)
@@ -156,13 +156,13 @@ class WikiFilePage extends WikiPage {
                        $update = new HTMLCacheUpdate( $this->mTitle, 'imagelinks' );
                        $update->doUpdate();
                        $this->mFile->upgradeRow();
-                       $this->mFile->purgeCache();
+                       $this->mFile->purgeCache( array( 'forRefresh' => true ) );
                } else {
                        wfDebug( 'ImagePage::doPurge no image for ' . $this->mFile->getName() . "; limiting purge to cache only\n" );
                        // even if the file supposedly doesn't exist, force any cached information
                        // to be updated (in case the cached information is wrong)
-                       $this->mFile->purgeCache();
+                       $this->mFile->purgeCache( array( 'forRefresh' => true ) );
                }
-               parent::doPurge();
+               return parent::doPurge();
        }
 }