<?php
/**
- *
- *
- * Created on Jan 4, 2008
- *
* Copyright © 2008 Yuri Astrakhan "<Firstname><Lastname>@gmail.com",
*
* This program is free software; you can redistribute it and/or modify
foreach ( $pageSet->getMissingTitles() as $title ) {
$r = $this->watchTitle( $title, $user, $params );
- $r['missing'] = 1;
+ $r['missing'] = true;
$res[] = $r;
}
if ( $params['unwatch'] ) {
$status = UnwatchAction::doUnwatch( $title, $user );
$res['unwatched'] = $status->isOK();
- if ( $status->isOK() ) {
- $msgKey = $title->isTalkPage() ? 'removedwatchtext-talk' : 'removedwatchtext';
- $res['message'] = $this->msg( $msgKey, $title->getPrefixedText() )
- ->title( $title )->parseAsBlock();
- }
} else {
$status = WatchAction::doWatch( $title, $user );
$res['watched'] = $status->isOK();
- if ( $status->isOK() ) {
- $msgKey = $title->isTalkPage() ? 'addedwatchtext-talk' : 'addedwatchtext';
- $res['message'] = $this->msg( $msgKey, $title->getPrefixedText() )
- ->title( $title )->parseAsBlock();
- }
}
if ( !$status->isOK() ) {
}
public function getHelpUrls() {
- return 'https://www.mediawiki.org/wiki/API:Watch';
+ return 'https://www.mediawiki.org/wiki/Special:MyLanguage/API:Watch';
}
}