api.php: wfRunHooks() → Hooks::run()
Change-Id: I199fff17ff574d19701c354ee29bbb8e307e5665
This commit is contained in:
parent
96ccb715c0
commit
e6c32f83a3
1 changed files with 1 additions and 1 deletions
2
api.php
2
api.php
|
|
@ -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' );
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue