dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b9789f9
)
API: Fix missing return in ApiResult::addContentValue()
author
Kunal Mehta
<legoktm@member.fsf.org>
Sun, 24 Mar 2019 00:10:18 +0000
(17:10 -0700)
committer
Kunal Mehta
<legoktm@member.fsf.org>
Sun, 24 Mar 2019 01:06:35 +0000
(18:06 -0700)
Spotted by phan.
Change-Id: Ifca5e15a1360008b5d91e1b6f483da8e0367819a
includes/api/ApiResult.php
patch
|
blob
|
history
diff --git
a/includes/api/ApiResult.php
b/includes/api/ApiResult.php
index
c4a31c7
..
c27b10e
100644
(file)
--- a/
includes/api/ApiResult.php
+++ b/
includes/api/ApiResult.php
@@
-498,7
+498,7
@@
class ApiResult implements ApiSerializable {
throw new InvalidArgumentException( 'Content value must be named' );
}
$this->addContentField( $path, $name, $flags );
- $this->addValue( $path, $name, $value, $flags );
+
return
$this->addValue( $path, $name, $value, $flags );
}
/**