if ( isset( $data['warnings'][$this->getModuleName()] ) ) {
// Don't add duplicate warnings
$warn_regex = preg_quote( $warning, '/' );
- if ( preg_match( "/{$warn_regex}(\\n|$)/", $data['warnings'][$this->getModuleName()]['*'] ) )
- {
+ if ( preg_match( "/{$warn_regex}(\\n|$)/", $data['warnings'][$this->getModuleName()]['*'] ) ) {
return;
}
$oldwarning = $data['warnings'][$this->getModuleName()]['*'];
$this->dieUsageMsg( reset( $retval ) ); // We don't care about multiple errors, just report one of them
}
- $watch = 'nochange';
// Deprecated parameters
if ( $params['watch'] ) {
$watch = 'watch';
}
$params = $this->extractRequestParams();
- $source = null;
$isUpload = false;
if ( isset( $params['interwikisource'] ) ) {
if ( !isset( $params['interwikipage'] ) ) {
/**
* Set the type of caching headers which will be sent.
*
- * @param $mode One of:
+ * @param $mode String One of:
* - 'public': Cache this object in public caches, if the maxage or smaxage
* parameter is set, or if setCacheMaxAge() was called. If a maximum age is
* not provided by any of these means, the object will be private.
public function execute() {
$params = $this->extractRequestParams();
- $result = $this->getResult();
if ( !is_null( $params['prop'] ) ) {
$this->prop = array_flip( $params['prop'] );