$data['timezone'] = $tz;
$data['timeoffset'] = $offset;
- $this->getResult()->addValue( array( 'query', $this->getModuleName() ), $property, $data );
+ $this->getResult()->addValue( 'query', $property, $data );
}
protected function appendNamespaces( $property ) {
}
$this->getResult()->setIndexedTagName( $data, 'ns' );
- $this->getResult()->addValue( array( 'query', $this->getModuleName() ), $property, $data );
+ $this->getResult()->addValue( 'query', $property, $data );
}
protected function appendNamespaceAliases( $property ) {
}
$this->getResult()->setIndexedTagName( $data, 'ns' );
- $this->getResult()->addValue( array( 'query', $this->getModuleName() ), $property, $data );
+ $this->getResult()->addValue( 'query', $property, $data );
}
protected function appendSpecialPageAliases( $property ) {
$data[] = $arr;
}
$this->getResult()->setIndexedTagName( $data, 'specialpage' );
- $this->getResult()->addValue( array( 'query', $this->getModuleName() ), $property, $data );
+ $this->getResult()->addValue( 'query', $property, $data );
}
protected function appendMagicWords( $property ) {
$data[] = $arr;
}
$this->getResult()->setIndexedTagName($data, 'magicword');
- $this->getResult()->addValue( array( 'query', $this->getModuleName() ), $property, $data );
+ $this->getResult()->addValue('query', $property, $data);
}
$db->freeResult( $res );
$this->getResult()->setIndexedTagName( $data, 'iw' );
- $this->getResult()->addValue( array( 'query', $this->getModuleName() ), $property, $data );
+ $this->getResult()->addValue( 'query', $property, $data );
}
protected function appendDbReplLagInfo( $property, $includeAll ) {
);
}
- $this->getResult()->setIndexedTagName( $data, 'db' );
- $this->getResult()->addValue( array( 'query', $this->getModuleName() ), $property, $data );
+ $result = $this->getResult();
+ $result->setIndexedTagName( $data, 'db' );
+ $result->addValue( 'query', $property, $data );
}
protected function appendStatistics( $property ) {
$data['activeusers'] = intval( SiteStats::activeUsers() );
$data['admins'] = intval( SiteStats::numberingroup('sysop') );
$data['jobs'] = intval( SiteStats::jobs() );
- $this->getResult()->addValue( array( 'query', $this->getModuleName() ), $property, $data );
+ $this->getResult()->addValue( 'query', $property, $data );
}
protected function appendUserGroups( $property ) {
}
$this->getResult()->setIndexedTagName( $data, 'group' );
- $this->getResult()->addValue( array( 'query', $this->getModuleName() ), $property, $data );
+ $this->getResult()->addValue( 'query', $property, $data );
}
public function getAllowedParams() {