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
Avoid multiply calls to MediaWikiServices::getInstance() in one function
[lhc/web/wiklou.git]
/
includes
/
api
/
ApiResult.php
diff --git
a/includes/api/ApiResult.php
b/includes/api/ApiResult.php
index
c4a31c7
..
7224f07
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 );
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 );
}
/**
}
/**
@@
-514,7
+514,7
@@
class ApiResult implements ApiSerializable {
self::OVERRIDE | self::NO_SIZE_CHECK );
}
self::OVERRIDE | self::NO_SIZE_CHECK );
}
- /**
@}
*/
+ /**
@}
*/
/************************************************************************//**
* @name Metadata
/************************************************************************//**
* @name Metadata
@@
-777,7
+777,7
@@
class ApiResult implements ApiSerializable {
self::setArrayTypeRecursive( $arr, $tag, $kvpKeyName );
}
self::setArrayTypeRecursive( $arr, $tag, $kvpKeyName );
}
- /**
@}
*/
+ /**
@}
*/
/************************************************************************//**
* @name Utility
/************************************************************************//**
* @name Utility
@@
-1217,7
+1217,7
@@
class ApiResult implements ApiSerializable {
}
}
}
}
- /**
@}
*/
+ /**
@}
*/
}
}