Add parser callback to get a page's current revision
authorJackmcbarn <jackmcbarn@gmail.com>
Tue, 16 Sep 2014 00:07:52 +0000 (20:07 -0400)
committerJackmcbarn <jackmcbarn@gmail.com>
Fri, 19 Sep 2014 15:59:58 +0000 (11:59 -0400)
commitedc9f2acd91c0c8e6b31bcef075b57486f0a2071
treed10da76b1599c2fe3002909187451b339bc08fcb
parentaad7dad56482567b7848fd70f5912b9f110bb007
Add parser callback to get a page's current revision

Add Parser::fetchCurrentRevisionOfTitle(). By default, this just calls
Revision::newFromTitle, but a callback can be set in ParserOptions that
will override it. Anything that runs as part of a parse should use this
wherever possible.

Bug: 70495
Change-Id: I521f1f68ad819cf0f37e63240806f10c1cceef9c
includes/parser/CoreParserFunctions.php
includes/parser/Parser.php
includes/parser/ParserOptions.php