From: jenkins-bot Date: Tue, 29 Apr 2014 03:30:10 +0000 (+0000) Subject: Merge "API: Warn when unsupported PHP array syntax is used" X-Git-Tag: 1.31.0-rc.0~15980 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/categories/modifier.php?a=commitdiff_plain;h=96764fbc9a67fa6040c6123d31ac3746fc6fd98f;p=lhc%2Fweb%2Fwiklou.git Merge "API: Warn when unsupported PHP array syntax is used" --- 96764fbc9a67fa6040c6123d31ac3746fc6fd98f diff --cc includes/api/ApiMain.php index 078e57a294,5cdcd51784..554bfa6740 --- a/includes/api/ApiMain.php +++ b/includes/api/ApiMain.php @@@ -995,13 -997,9 +1006,11 @@@ class ApiMain extends ApiBase /** * Get a boolean request value, and register the fact that the parameter * was used, for logging. + * @param string $name + * @return bool */ public function getCheck( $name ) { - $this->mParamsUsed[$name] = true; - - return $this->getRequest()->getCheck( $name ); + return $this->getVal( $name, null ) !== null; } /**