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
Merge "Remove dead code from RCCacheEntryFactory"
[lhc/web/wiklou.git]
/
includes
/
gallery
/
ImageGalleryBase.php
diff --git
a/includes/gallery/ImageGalleryBase.php
b/includes/gallery/ImageGalleryBase.php
index
991ef79
..
4781a48
100644
(file)
--- a/
includes/gallery/ImageGalleryBase.php
+++ b/
includes/gallery/ImageGalleryBase.php
@@
-75,7
+75,7
@@
abstract class ImageGalleryBase extends ContextSource {
protected $mHideBadImages;
/**
protected $mHideBadImages;
/**
- * @var Parser Registered parser object for output callbacks
+ * @var Parser
|false
Registered parser object for output callbacks
*/
public $mParser;
*/
public $mParser;
@@
-88,8
+88,17
@@
abstract class ImageGalleryBase extends ContextSource {
/** @var array */
protected $mAttribs = [];
/** @var array */
protected $mAttribs = [];
- /** @var bool */
- private static $modeMapping = false;
+ /** @var int */
+ protected $mPerRow;
+
+ /** @var int */
+ protected $mWidths;
+
+ /** @var int */
+ protected $mHeights;
+
+ /** @var array */
+ private static $modeMapping;
/**
* Get a new image gallery. This is the method other callers
/**
* Get a new image gallery. This is the method other callers
@@
-121,7
+130,7
@@
abstract class ImageGalleryBase extends ContextSource {
}
private static function loadModes() {
}
private static function loadModes() {
- if ( self::$modeMapping ===
false
) {
+ if ( self::$modeMapping ===
null
) {
self::$modeMapping = [
'traditional' => TraditionalImageGallery::class,
'nolines' => NolinesImageGallery::class,
self::$modeMapping = [
'traditional' => TraditionalImageGallery::class,
'nolines' => NolinesImageGallery::class,