X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fpage%2FWikiFilePage.php;h=bfcd4c3111f315e33fdf5f5f4dccdc144a4e2b02;hb=d55b1505b0e21116b995808c20cbbd2004959add;hp=34f15c3aa6c893d22e8c69ce063064a3a8d2f401;hpb=da7df94b4c2293df5e9abce5634046a3622463df;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/page/WikiFilePage.php b/includes/page/WikiFilePage.php index 34f15c3aa6..bfcd4c3111 100644 --- a/includes/page/WikiFilePage.php +++ b/includes/page/WikiFilePage.php @@ -40,12 +40,6 @@ class WikiFilePage extends WikiPage { $this->mRepo = null; } - public function getActionOverrides() { - $overrides = parent::getActionOverrides(); - $overrides['revert'] = 'RevertFileAction'; - return $overrides; - } - /** * @param File $file */ @@ -207,7 +201,7 @@ class WikiFilePage extends WikiPage { $title = $this->mTitle; $file = $this->mFile; - if ( ! $file instanceof LocalFile ) { + if ( !$file instanceof LocalFile ) { wfDebug( __CLASS__ . '::' . __METHOD__ . " is not supported for this file\n" ); return TitleArray::newFromResult( new FakeResultWrapper( array() ) ); }