X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=blobdiff_plain;f=includes%2FWikiFilePage.php;h=817f0fa7eb5abc4d154096b39e738d970967598e;hb=23eae7ed23d5a21e0944e3b3cc536551f9bff7f2;hp=2b192b0f068e13f20af59a6fc7664ef97fc14269;hpb=e1ecdea0b1272a2444547128437507673e19525c;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/WikiFilePage.php b/includes/WikiFilePage.php index 2b192b0f06..817f0fa7eb 100644 --- a/includes/WikiFilePage.php +++ b/includes/WikiFilePage.php @@ -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