X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FWikiFilePage.php;h=817f0fa7eb5abc4d154096b39e738d970967598e;hb=19084be0a2a11725bb319ca7137cedfc159daef1;hp=2b192b0f068e13f20af59a6fc7664ef97fc14269;hpb=8118a343fc58c31063a7f11dde6c856e87bd75ef;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