Page MenuHomePhabricator

'SpecialPage_initList' hook appears to be broken
Closed, ResolvedPublic

Description

Author: lhridley

Description:
Any functions hooked into SpecialPage_initList do not appear to ever get invoked; this hook appears to be broken.


Version: 1.12.x
Severity: normal

Details

Reference
bz14494

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 10:13 PM
bzimport set Reference to bz14494.
bzimport added a subscriber: Unknown Object (MLST).

I can't duplicate this on a 1.12.0 installation. This extension code calls the hook function and dies properly.

$wgHooks['SpecialPage_initList'][] = 'testInitList';

function testInitList(&$list ) {

die('initList hook is being called.');

}

Is your problem that the hook function is never being called or that you can't manipulate the $list parameter?

lhridley wrote:

I have no idea...I set up pretty much the same hook that you did and it never got executed. :(

None of the extensions I have implemented are using this hook, but there may be a conflict elsewhere. Let me take a look and see if can isolate this to an extension

Thanks for looking at it. Please leave this open for now. :)

lhridley wrote:

Let's close this for now. I haven't been able to reproduce the error, so I have to assume it was something I did on my end.

Sorry :)