X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=api.php;h=7775158ba2e41a84fee0285c2a0cbf091b356a3a;hb=e51eaf619fb15521f84e35f1a64e66aa38e63106;hp=ea2f60aef2de0c455a58f40a3c872e9c23868102;hpb=6dae212c2e8e5eab4340144a7097e075af4dbf8a;p=lhc%2Fweb%2Fwiklou.git 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' ); }