/**
* @var ImageGallery
*/
- var $gallery;
+ protected $gallery;
function __construct( IContextSource $context, $par = null ) {
$this->like = $context->getRequest()->getText( 'like' );
}
function getQueryInfo() {
- global $wgMiserMode;
$conds = $jconds = array();
$tables = array( 'image' );
}
}
- if ( !$wgMiserMode && $this->like !== null ) {
+ if ( !$this->getConfig()->get( 'MiserMode' ) && $this->like !== null ) {
$dbr = wfGetDB( DB_SLAVE );
$likeObj = Title::newFromURL( $this->like );
if ( $likeObj instanceof Title ) {
}
function getForm() {
- global $wgMiserMode;
-
$fields = array(
'like' => array(
'type' => 'text',
),
'showbots' => array(
'type' => 'check',
- 'label' => $this->msg( 'showhidebots', $this->msg( 'show' )->plain() )->escaped(),
+ 'label-message' => 'newimages-showbots',
'name' => 'showbots',
),
'limit' => array(
),
);
- if ( $wgMiserMode ) {
+ if ( $this->getConfig()->get( 'MiserMode' ) ) {
unset( $fields['like'] );
}