dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8c35b38
)
Cache gallery object, don't create a new one unless we need to
author
Sam Reed
<reedy@users.mediawiki.org>
Thu, 19 Jan 2012 16:33:57 +0000
(16:33 +0000)
committer
Sam Reed
<reedy@users.mediawiki.org>
Thu, 19 Jan 2012 16:33:57 +0000
(16:33 +0000)
Make getStartBody return something
includes/specials/SpecialNewimages.php
patch
|
blob
|
history
diff --git
a/includes/specials/SpecialNewimages.php
b/includes/specials/SpecialNewimages.php
index
dbf354d
..
b88123d
100644
(file)
--- a/
includes/specials/SpecialNewimages.php
+++ b/
includes/specials/SpecialNewimages.php
@@
-103,7
+103,10
@@
class NewFilesPager extends ReverseChronologicalPager {
}
function getStartBody(){
- $this->gallery = new ImageGallery();
+ if ( !$this->gallery ) {
+ $this->gallery = new ImageGallery();
+ }
+ return '';
}
function getEndBody(){