wfRunHooks() -> Hooks::run() in remaining entry point files

Change-Id: I074deaa7dabc9512812a0ec76a8cc2ea4535a484
This commit is contained in:
Chad Horohoe 2015-04-27 21:37:20 -07:00
parent 2313fc51d6
commit 63c7b003c4
3 changed files with 3 additions and 3 deletions

View file

@ -151,7 +151,7 @@ function wfImageAuthMain() {
// Run hook for extension authorization plugins
/** @var $result array */
$result = null;
if ( !wfRunHooks( 'ImgAuthBeforeStream', array( &$title, &$path, &$name, &$result ) ) ) {
if ( !Hooks::run( 'ImgAuthBeforeStream', array( &$title, &$path, &$name, &$result ) ) ) {
wfForbidden( $result[0], $result[1], array_slice( $result, 2 ) );
return;
}

View file

@ -94,7 +94,7 @@ foreach ( $wgOpenSearchTemplates as $type => $template ) {
// Allow hooks to override the suggestion URL settings in a more
// general way than overriding the whole search engine...
wfRunHooks( 'OpenSearchUrls', array( &$urls ) );
Hooks::run( 'OpenSearchUrls', array( &$urls ) );
foreach ( $urls as $attribs ) {
print Xml::element( 'Url', $attribs );

View file

@ -502,7 +502,7 @@ function wfExtractThumbParams( $file, $params ) {
unset( $params['thumbName'] );
// Do the hook first for older extensions that rely on it.
if ( !wfRunHooks( 'ExtractThumbParameters', array( $thumbname, &$params ) ) ) {
if ( !Hooks::run( 'ExtractThumbParameters', array( $thumbname, &$params ) ) ) {
// Check hooks if parameters can be extracted
// Hooks return false if they manage to *resolve* the parameters
// This hook should be considered deprecated