X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fpage%2FWikiFilePage.php;h=bfcd4c3111f315e33fdf5f5f4dccdc144a4e2b02;hb=9fc8b2228e63397e3849607de96d9fa15a1ff38c;hp=34f15c3aa6c893d22e8c69ce063064a3a8d2f401;hpb=8187075a7f5eec32437a69045c96fa18da979a95;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() ) ); }