api.php: wfRunHooks() → Hooks::run()

Change-Id: I199fff17ff574d19701c354ee29bbb8e307e5665
This commit is contained in:
Kunal Mehta 2015-04-27 15:43:49 -07:00
parent 96ccb715c0
commit e6c32f83a3

View file

@ -75,7 +75,7 @@ try {
$processor = new ApiMain( RequestContext::getMain(), $wgEnableWriteAPI );
// Last chance hook before executing the API
wfRunHooks( 'ApiBeforeMain', array( &$processor ) );
Hooks::run( 'ApiBeforeMain', array( &$processor ) );
if ( !$processor instanceof ApiMain ) {
throw new MWException( 'ApiBeforeMain hook set $processor to a non-ApiMain class' );
}