* Added cascade flag to prop=info&inprop=protections
* Added wlshow parameter to list=watchlist, similar to rcshow (list=recentchanges)
* Added support for image thumbnailing to prop=imageinfo
+* action={login,block,delete,move,protect,rollback,unblock,undelete} now must be POSTed
=== Languages updated in 1.12 ===
public function isEditMode() {
return false;
}
+
+ /**
+ * Indicates whether this module must be called with a POST request
+ */
+ public function mustBePosted() {
+ return false;
+ }
/**
$this->getResult()->addValue(null, $this->getModuleName(), $res);
}
+ public function mustBePosted() { return true; }
+
protected function getAllowedParams() {
return array (
'user' => null,
return array(array('cannotdelete', $article->mTitle->getPrefixedText()));
}
+ public function mustBePosted() { return true; }
+
protected function getAllowedParams() {
return array (
'title' => null,
private function getMemCacheKey() {
return wfMemcKey( 'apilogin', 'badlogin', 'ip', wfGetIP() );
}
+
+ public function mustBePosted() { return true; }
protected function getAllowedParams() {
return array (
return;
}
}
-
+
if (!$this->mInternalMode) {
+ // Ignore mustBePosted() for internal calls
+ if($module->mustBePosted() && !$this->mRequest->wasPosted())
+ $this->dieUsage("The {$this->mAction} module requires a POST request", 'mustbeposted');
// See if custom printer is used
$this->mPrinter = $module->getCustomPrinter();
$this->getResult()->addValue(null, $this->getModuleName(), $r);
}
+ public function mustBePosted() { return true; }
+
protected function getAllowedParams() {
return array (
'from' => null,
$this->getResult()->addValue(null, $this->getModuleName(), $res);
}
+ public function mustBePosted() { return true; }
+
protected function getAllowedParams() {
return array (
'title' => null,
$this->getResult()->addValue(null, $this->getModuleName(), $info);
}
+ public function mustBePosted() { return true; }
+
protected function getAllowedParams() {
return array (
'title' => null,
$res['reason'] = $reason;
$this->getResult()->addValue(null, $this->getModuleName(), $res);
}
+
+ public function mustBePosted() { return true; }
protected function getAllowedParams() {
return array (
$this->getResult()->addValue(null, $this->getModuleName(), $info);
}
+ public function mustBePosted() { return true; }
+
protected function getAllowedParams() {
return array (
'title' => null,