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
Fix undefined $ok in DatabaseUpdater::migrateComments
[lhc/web/wiklou.git]
/
includes
/
page
/
ImageHistoryPseudoPager.php
diff --git
a/includes/page/ImageHistoryPseudoPager.php
b/includes/page/ImageHistoryPseudoPager.php
index
4785ef1
..
20bc614
100644
(file)
--- a/
includes/page/ImageHistoryPseudoPager.php
+++ b/
includes/page/ImageHistoryPseudoPager.php
@@
-55,8
+55,7
@@
class ImageHistoryPseudoPager extends ReverseChronologicalPager {
public function __construct( $imagePage ) {
parent::__construct( $imagePage->getContext() );
$this->mImagePage = $imagePage;
public function __construct( $imagePage ) {
parent::__construct( $imagePage->getContext() );
$this->mImagePage = $imagePage;
- $this->mTitle = clone $imagePage->getTitle();
- $this->mTitle->setFragment( '#filehistory' );
+ $this->mTitle = $imagePage->getTitle()->createFragmentTarget( 'filehistory' );
$this->mImg = null;
$this->mHist = [];
$this->mRange = [ 0, 0 ]; // display range
$this->mImg = null;
$this->mHist = [];
$this->mRange = [ 0, 0 ]; // display range