dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Rename Watchlist request parameters for consistency with RC's ones
[lhc/web/wiklou.git]
/
includes
/
WikiFilePage.php
diff --git
a/includes/WikiFilePage.php
b/includes/WikiFilePage.php
index
2b192b0
..
817f0fa
100644
(file)
--- a/
includes/WikiFilePage.php
+++ b/
includes/WikiFilePage.php
@@
-85,7
+85,8
@@
class WikiFilePage extends WikiPage {
if ( $from == $to ) {
return null;
}
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 ) ) {
}
$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
}
$dupes = RepoGroup::singleton()->findBySha1( $hash );
// Remove duplicates with self and non matching file sizes