dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Improve test coverage for ApiBase.php
[lhc/web/wiklou.git]
/
includes
/
api
/
ApiMain.php
diff --git
a/includes/api/ApiMain.php
b/includes/api/ApiMain.php
index
008015b
..
01e889d
100644
(file)
--- a/
includes/api/ApiMain.php
+++ b/
includes/api/ApiMain.php
@@
-593,7
+593,7
@@
class ApiMain extends ApiBase {
$this->setCacheMode( 'private' );
$response = $this->getRequest()->response();
$this->setCacheMode( 'private' );
$response = $this->getRequest()->response();
- $headerStr = 'MediaWiki-API-Error: ' .
join
( ', ', $errCodes );
+ $headerStr = 'MediaWiki-API-Error: ' .
implode
( ', ', $errCodes );
$response->header( $headerStr );
// Reset and print just the error message
$response->header( $headerStr );
// Reset and print just the error message
@@
-1720,8
+1720,8
@@
class ApiMain extends ApiBase {
/**
* Get a request value, and register the fact that it was used, for logging.
* @param string $name
/**
* Get a request value, and register the fact that it was used, for logging.
* @param string $name
- * @param
mixed
$default
- * @return
mixed
+ * @param
string|null
$default
+ * @return
string|null
*/
public function getVal( $name, $default = null ) {
$this->mParamsUsed[$name] = true;
*/
public function getVal( $name, $default = null ) {
$this->mParamsUsed[$name] = true;