$title = Title::makeTitle( $row->ar_namespace, $row->ar_title );
- if ( $fld_parsedcomment) {
+ if ( $fld_parsedcomment ) {
global $wgUser;
$rev['parsedcomment'] = $wgUser->getSkin()->formatComment( $row->ar_comment, $title );
}
$vals['pageid'] = intval( $row->page_id );
}
- $title = Title :: makeTitle( $row->log_namespace, $row->log_title );
+ $title = Title::makeTitle( $row->log_namespace, $row->log_title );
if ( $this->fld_title ) {
if ( LogEventsList::isDeleted( $row, LogPage::DELETED_ACTION ) ) {
$vals['actionhidden'] = '';
} else {
- ApiQueryBase :: addTitleInfo( $vals, $title );
+ ApiQueryBase::addTitleInfo( $vals, $title );
}
}
$vals['timestamp'] = wfTimestamp( TS_ISO_8601, $row->log_timestamp );
}
- if ( ($this->fld_comment || $this->fld_parsedcomment) && isset( $row->log_comment ) ) {
+ if ( ( $this->fld_comment || $this->fld_parsedcomment ) && isset( $row->log_comment ) ) {
if ( LogEventsList::isDeleted( $row, LogPage::DELETED_COMMENT ) ) {
$vals['commenthidden'] = '';
} else {
// $vals['textid'] = intval($row->rev_text_id); // todo: Should this field be exposed?
}
- $title = Title :: makeTitle( $row->page_namespace, $row->page_title );
+ $title = Title::makeTitle( $row->page_namespace, $row->page_title );
if ( $this->fld_title )
- ApiQueryBase :: addTitleInfo( $vals, $title );
+ ApiQueryBase::addTitleInfo( $vals, $title );
if ( $this->fld_timestamp )
$vals['timestamp'] = wfTimestamp( TS_ISO_8601, $row->rev_timestamp );
$vals['top'] = '';
}
- if ( ($this->fld_comment || $this->fld_parsedcomment) && isset( $row->rev_comment ) ) {
+ if ( ( $this->fld_comment || $this->fld_parsedcomment ) && isset( $row->rev_comment ) ) {
if ( $row->rev_deleted & Revision::DELETED_COMMENT )
$vals['commenthidden'] = '';
else {
$vals['revid'] = intval( $row->rc_this_oldid );
}
- $title = Title :: makeTitle( $row->rc_namespace, $row->rc_title );
+ $title = Title::makeTitle( $row->rc_namespace, $row->rc_title );
if ( $this->fld_title )
- ApiQueryBase :: addTitleInfo( $vals, $title );
+ ApiQueryBase::addTitleInfo( $vals, $title );
if ( $this->fld_user ) {
$vals['user'] = $row->rc_user_text;
*/
protected function initFromSessionKey( $sessionKey, $sessionData ) {
// testing against null because we don't want to cause obscure
- // bugs when $sessionKey is full of "0"
+ // bugs when $sessionKey is full of "0"
if ( !$sessionKey === null ) {
$this->status = Status::newFromFatal( 'import-token-mismatch' );
return;