X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2FWikiFilePage.php;h=44f05995915c5667382ddd3f9a013049dfdb22d1;hb=22e045ab12acb5e7285adc8087585d001487a22d;hp=2b192b0f068e13f20af59a6fc7664ef97fc14269;hpb=e92d87c26c408441d8c229fc1e9c7e0bcd93898a;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/WikiFilePage.php b/includes/WikiFilePage.php index 2b192b0f06..44f0599591 100644 --- a/includes/WikiFilePage.php +++ b/includes/WikiFilePage.php @@ -47,7 +47,7 @@ class WikiFilePage extends WikiPage { } /** - * @param $file File: + * @param File $file */ public function setFile( $file ) { $this->mFile = $file; @@ -85,7 +85,8 @@ class WikiFilePage extends WikiPage { if ( $from == $to ) { return null; } - return $this->mRedirectTarget = Title::makeTitle( NS_FILE, $to ); + $this->mRedirectTarget = Title::makeTitle( NS_FILE, $to ); + return $this->mRedirectTarget; } /** @@ -142,7 +143,8 @@ class WikiFilePage extends WikiPage { } $hash = $this->mFile->getSha1(); if ( !( $hash ) ) { - return $this->mDupes = array(); + $this->mDupes = array(); + return $this->mDupes; } $dupes = RepoGroup::singleton()->findBySha1( $hash ); // Remove duplicates with self and non matching file sizes @@ -205,7 +207,7 @@ class WikiFilePage extends WikiPage { $file = $this->mFile; if ( ! $file instanceof LocalFile ) { - wfDebug( __CLASS__ . '::' . __METHOD__ . ' is not supported for this file' ); + wfDebug( __CLASS__ . '::' . __METHOD__ . " is not supported for this file\n" ); return TitleArray::newFromResult( new FakeResultWrapper( array() ) ); }