Make gallery properties publically accessible.
authorMark A. Hershberger <mah@everybody.org>
Sat, 3 May 2014 17:12:18 +0000 (13:12 -0400)
committerMark A. Hershberger <mah@everybody.org>
Sat, 3 May 2014 17:12:18 +0000 (13:12 -0400)
They were public in the previous release of MediaWiki (1.22), although
the visibility was not set explicitly.

See I779d5a683982dc25bc7cdd30addd5870f2a7efd0 and
https://github.com/SemanticMediaWiki/SemanticResultFormats/issues/12

Change-Id: I309cf46891223c5f1520e97b04d4ed315a300e7a

includes/gallery/ImageGalleryBase.php

index 42e8c03..befab15 100644 (file)
  */
 abstract class ImageGalleryBase extends ContextSource {
        /** @var array Gallery images */
-       protected $mImages;
+       public $mImages;
 
        /** @var bool Whether to show the filesize in bytes in categories */
-       protected $mShowBytes;
+       public $mShowBytes;
 
        /** @var bool Whether to show the filename. Default: true */
-       protected $mShowFilename;
+       public $mShowFilename;
 
        /** @var string Gallery mode. Default: traditional */
-       protected $mMode;
+       public $mMode;
 
        /** @var bool|string Gallery caption. Default: false */
-       protected $mCaption = false;
+       public $mCaption = false;
 
        /**
         * @var bool Hide blacklisted images?
         */
-       protected $mHideBadImages;
+       public $mHideBadImages;
 
        /**
         * @var Parser Registered parser object for output callbacks
         */
-       protected $mParser;
+       public $mParser;
 
        /**
         * @var Title Contextual title, used when images are being screened against