Merge "api.php: wfRunHooks() → Hooks::run()"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Tue, 28 Apr 2015 04:34:56 +0000 (04:34 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Tue, 28 Apr 2015 04:34:56 +0000 (04:34 +0000)
api.php

diff --git a/api.php b/api.php
index ea2f60a..7775158 100644 (file)
--- 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' );
        }