Page MenuHomePhabricator

Add hook 'SpecialNewpagesOutput'
Closed, ResolvedPublic

Description

In SpecialNewpages.php we find

// Allow changes to the New Pages query
wfRunHooks('SpecialNewpagesConditions', array(&$this, $this->opts, &$conds));

but alas no

// Allow changes to the New Pages output
wfRunHooks('SpecialNewpagesOutput', // (or call it 'SpecialNewpagesRow')

I.e., no way there in

public function formatRow( $result ) {

for us to get our hands on one the components of

return "<li{$css}>{$time} {$dm}{$plink} {$hist} {$dm}{$length} {$dm}{$ulink} {$comment} {$tagDisplay}</li>\n";

to tweak it before they are all stuck together, nor afterwords for that matter either.

Details

Reference
bz25315