From: Tim Starling Date: Tue, 6 Dec 2011 01:21:08 +0000 (+0000) Subject: Fix for r103471: WikiPage::doSubmit() is not the only implementation of doSubmit... X-Git-Tag: 1.31.0-rc.0~26168 X-Git-Url: http://git.cyclocoop.org/%24action?a=commitdiff_plain;h=168ff367fc7ab8cf51f1b8ebdd21b5f859f0c1da;p=lhc%2Fweb%2Fwiklou.git Fix for r103471: WikiPage::doSubmit() is not the only implementation of doSubmit() that needs to be patched to return true. Without this, action=purge on an image page just shows a blank body. --- diff --git a/includes/WikiFilePage.php b/includes/WikiFilePage.php index a7d6ccbbba..e2096b3ea7 100644 --- a/includes/WikiFilePage.php +++ b/includes/WikiFilePage.php @@ -163,6 +163,6 @@ class WikiFilePage extends WikiPage { // to be updated (in case the cached information is wrong) $this->mFile->purgeCache( array( 'forRefresh' => true ) ); } - parent::doPurge(); + return parent::doPurge(); } }