From: Kunal Mehta Date: Mon, 27 Apr 2015 22:43:49 +0000 (-0700) Subject: api.php: wfRunHooks() → Hooks::run() X-Git-Tag: 1.31.0-rc.0~11570^2 X-Git-Url: http://git.cyclocoop.org//%27%40script%40/%27?a=commitdiff_plain;h=e6c32f83a36fb7bf821a7d9faaa2dfa1ac2ab23b;p=lhc%2Fweb%2Fwiklou.git api.php: wfRunHooks() → Hooks::run() Change-Id: I199fff17ff574d19701c354ee29bbb8e307e5665 --- diff --git a/api.php b/api.php index ea2f60aef2..7775158ba2 100644 --- a/api.php +++ b/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' ); }