public $limit;
/** @var array */
- protected $from;
+ public $from;
/** @var array */
- protected $until;
+ public $until;
/** @var string[] */
public $articles;
public $articles_start_char;
/** @var array */
- protected $children;
+ public $children;
/** @var array */
- protected $children_start_char;
+ public $children_start_char;
/** @var bool */
- protected $showGallery;
+ public $showGallery;
/** @var array */
- protected $imgsNoGallery_start_char;
+ public $imgsNoGallery_start_char;
/** @var array */
- protected $imgsNoGallery;
+ public $imgsNoGallery;
/** @var array */
- protected $nextPage;
+ public $nextPage;
/** @var array */
protected $prevPage;
/** @var array */
- protected $flip;
+ public $flip;
/** @var Title */
- protected $title;
+ public $title;
/** @var Collation */
- protected $collation;
+ public $collation;
/** @var ImageGallery */
- protected $gallery;
+ public $gallery;
/** @var Category Category object for this page. */
private $cat;
function __construct( $title, IContextSource $context, $from = array(),
$until = array(), $query = array()
) {
- global $wgCategoryPagingLimit;
$this->title = $title;
$this->setContext( $context );
$this->from = $from;
$this->until = $until;
- $this->limit = $wgCategoryPagingLimit;
+ $this->limit = $context->getConfig()->get( 'CategoryPagingLimit' );
$this->cat = Category::newFromTitle( $title );
$this->query = $query;
$this->collation = Collation::singleton();
* @return string HTML output
*/
public function getHTML() {
- global $wgCategoryMagicGallery;
wfProfileIn( __METHOD__ );
- $this->showGallery = $wgCategoryMagicGallery && !$this->getOutput()->mNoGallery;
+ $this->showGallery = $this->getConfig()->get( 'CategoryMagicGallery' )
+ && !$this->getOutput()->mNoGallery;
$this->clearCategoryState();
$this->doCategoryQuery();