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
Reduce duplication in some Special:ListGroupRights code
[lhc/web/wiklou.git]
/
includes
/
specials
/
SpecialNewimages.php
diff --git
a/includes/specials/SpecialNewimages.php
b/includes/specials/SpecialNewimages.php
index
aff5947
..
546c191
100644
(file)
--- a/
includes/specials/SpecialNewimages.php
+++ b/
includes/specials/SpecialNewimages.php
@@
-140,12
+140,11
@@
class NewFilesPager extends ReverseChronologicalPager {
// Note that null for mode is taken to mean use default.
$mode = $this->getRequest()->getVal( 'gallerymode', null );
try {
// Note that null for mode is taken to mean use default.
$mode = $this->getRequest()->getVal( 'gallerymode', null );
try {
- $this->gallery = ImageGalleryBase::factory( $mode );
+ $this->gallery = ImageGalleryBase::factory( $mode
, $this->getContext()
);
} catch ( MWException $e ) {
// User specified something invalid, fallback to default.
} catch ( MWException $e ) {
// User specified something invalid, fallback to default.
- $this->gallery = ImageGalleryBase::factory();
+ $this->gallery = ImageGalleryBase::factory(
false, $this->getContext()
);
}
}
- $this->gallery->setContext( $this->getContext() );
}
return '';
}
return '';