Page MenuHomePhabricator

How about 'AfterParserFetchTemplateAndTitle' ?
Closed, DeclinedPublic


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



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 added a subscriber: DannyS712.

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.