// Apply change tags
if ( count( $params['tags'] ) ) {
$tagStatus = ChangeTags::canAddTagsAccompanyingChange( $params['tags'], $user );
- if ( $tagStatus->isOk() ) {
+ if ( $tagStatus->isOK() ) {
$requestArray['wpChangeTags'] = implode( ',', $params['tags'] );
} else {
$this->dieStatus( $tagStatus );
$status = BotPassword::login(
$params['name'], $params['password'], $this->getRequest()
);
- if ( $status->isOk() ) {
+ if ( $status->isOK() ) {
$session = $status->getValue();
$authRes = LoginForm::SUCCESS;
$loginType = 'BotPassword';
if ( $this->getConfig()->get( 'ShowHostnames' ) ) {
$servedby = $this->getParameter( 'servedby' );
if ( $servedby ) {
- $result->addValue( null, 'servedby', wfHostName() );
+ $result->addValue( null, 'servedby', wfHostname() );
}
}
}
} else {
foreach ( $titles as $title ) {
- $resultId = $title->getArticleId();
+ $resultId = $title->getArticleID();
if ( $resultId === 0 ) {
$resultId = $nextSpecialPageId;
$nextSpecialPageId -= 1;
'extract' => false,
'extract trimmed' => false,
'image' => false,
- 'url' => wfExpandUrl( $title->getFullUrl(), PROTO_CURRENT ),
+ 'url' => wfExpandUrl( $title->getFullURL(), PROTO_CURRENT ),
];
}
}
if ( $title->isSpecialPage() ) {
$vals['special'] = true;
} else {
- $vals['pageid'] = intval( $title->getArticleId() );
+ $vals['pageid'] = intval( $title->getArticleID() );
}
$fit = $result->addValue( [ 'query', $this->getModuleName() ], null, $vals );
if ( !$fit ) {