Only call ParserOptions::getNumberHeadings() when needed for the benefit of cache...
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Sun, 6 Mar 2011 21:16:22 +0000 (21:16 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Sun, 6 Mar 2011 21:16:22 +0000 (21:16 +0000)
commit9e0c678ddf1dde08ff6b3e8dba1fd47055bde8b7
treeaf1011395186236d3b89525c18e3b457086db2d7
parentd9c46a0939bcb8a993fa3710f66cc0ecdff9fa92
Only call ParserOptions::getNumberHeadings() when needed for the benefit of cache sharing when this is not used.
Also fixed a bug in ParserOutput when no option is used; otherwise getUsedOptions() will return false and throw warnings in ParserOptions::optionsHash().
includes/parser/Parser.php
includes/parser/ParserOutput.php