So callers don't need to do this manually. Pointed out by Tim in T201799.
Depends-On: Ia6c36d5a650095e35093bf47e275e081e89b3daf
Change-Id: Ida62767f3ca53f99609cae01d3a20051bb92ccab
public function appendExtensionTags( $property ) {
global $wgParser;
- $wgParser->firstCallInit();
$tags = array_map(
function ( $item ) {
return "<$item>";
public function appendFunctionHooks( $property ) {
global $wgParser;
- $wgParser->firstCallInit();
$hooks = $wgParser->getFunctionHooks();
ApiResult::setArrayType( $hooks, 'BCarray' );
ApiResult::setIndexedTagName( $hooks, 'h' );
* @return array
*/
public function getFunctionHooks() {
+ $this->firstCallInit();
return array_keys( $this->mFunctionHooks );
}
* @return array
*/
public function getTags() {
+ $this->firstCallInit();
return array_merge(
array_keys( $this->mTransparentTagHooks ),
array_keys( $this->mTagHooks ),
public function testExtensionTags() {
global $wgParser;
- $wgParser->firstCallInit();
$expected = array_map(
function ( $tag ) {
return "<$tag>";
public function testFunctionHooks() {
global $wgParser;
- $wgParser->firstCallInit();
$this->assertSame( $wgParser->getFunctionHooks(), $this->doQuery( 'functionhooks' ) );
}