* @param IContextSource $context
* @param FormOptions $opts
*/
- function __construct( IContextSource $context, FormOptions $opts ) {
+ public function __construct( IContextSource $context, FormOptions $opts ) {
parent::__construct( $context );
$this->opts = $opts;
}
if ( !$opts->getValue( 'showbots' ) ) {
- $groupsWithBotPermission = User::getGroupsWithPermission( 'bot' );
+ $groupsWithBotPermission = MediaWikiServices::getInstance()
+ ->getPermissionManager()
+ ->getGroupsWithPermission( 'bot' );
if ( count( $groupsWithBotPermission ) ) {
$dbr = wfGetDB( DB_REPLICA );
$jcond = $rcQuery['fields']['rc_user'] . ' = ' . $imgQuery['fields']['img_user'];
}
$jconds['recentchanges'] = [
- 'INNER JOIN',
+ 'JOIN',
[
'rc_title = img_name',
$jcond,
return 'img_timestamp';
}
- function getStartBody() {
+ protected function getStartBody() {
if ( !$this->gallery ) {
// Note that null for mode is taken to mean use default.
$mode = $this->getRequest()->getVal( 'gallerymode', null );
return '';
}
- function getEndBody() {
+ protected function getEndBody() {
return $this->gallery->toHTML();
}
. htmlspecialchars( $time )
. "</i><br />\n"
);
+ return '';
}
}