Page MenuHomePhabricator

How about 'AfterParserFetchTemplateAndTitle' ?
Closed, DeclinedPublic

Description

Almost since the beginning of my MW extension writing I have missed a 'AfterParserFetchTemplateAndTitle'. There only is a 'BeforeParserFetchTemplateAndtitle'. Today I ran into this again and finally thought about requesting enhancement. I guess the right position to call the hook would probably be in Parser::statelessFetchTemplate(), right before returning the result to still allow modification:

wfRunHooks( 'AfterParserFetchTemplateAndTitle',

array( &$parser, &$finalTitle, &$text, &$deps )

);


Version: 1.17.x
Severity: enhancement

Details

Reference
bz31708

Event Timeline

bzimport raised the priority of this task from to Low.Nov 21 2014, 11:48 PM
bzimport set Reference to bz31708.
bzimport added a subscriber: Unknown Object (MLST).
DannyS712 subscribed.

Boldly declining - parser is being refactored in T236809: Refactor Parser.php to allow alternate parser (Parsoid) and has changed a lot since this was filed.