mediawiki-extensions-Cite/includes
Thiemo Kreuz 7ce10d7539 Remove lazy registration of Parser related hooks
To be honest I don't get why this lazy registration was done in the
first place. None of the 4 other hooks should ever be called before
the ParserFirstCallInit hook got called.

Also, under which circumstances can the ParserFirstCallInit hook be
called more than once?

Both scenarios would be wrong, as far as I'm concerned. Either I'm
missing something, or this code can indeed be simplified. Maybe it was
something to make it more compatible with older MediaWiki versions?

The only reason I can think of is: in all situations that do not
involve a parser, having the 4 extra hooks registered is pointless.
Does this waste space and/or runtime in the $wgHooks registry?

Change-Id: I5ef1495f4ce7bce940fa5f8e700af3d2c4851a01
2019-11-12 11:47:55 +01:00
..
ApiQueryReferences.php Move unrelated static code to ApiQueryReferences 2019-10-25 10:26:37 +00:00
Cite.php Merge "Move $this->mParser setters up one level" 2019-11-12 09:58:02 +00:00
CiteCSSFileModule.php Fix all PHPCS issues and add missing array type hints 2019-10-17 09:23:20 +02:00
CiteDataModule.php CiteDataModule: Remove origin restriction 2018-04-30 22:18:06 +02:00
CiteHooks.php Remove lazy registration of Parser related hooks 2019-11-12 11:47:55 +01:00
CiteParserHooks.php Remove lazy registration of Parser related hooks 2019-11-12 11:47:55 +01:00
CiteParserTagHooks.php Move some glue code from Cite to the Cite…Hooks classes 2019-11-07 09:48:08 +01:00