Chad has uploaded a new change for review. https://gerrit.wikimedia.org/r/207022
Change subject: wfRunHooks() -> Hooks::run() in remaining entry point files ...................................................................... wfRunHooks() -> Hooks::run() in remaining entry point files Change-Id: I074deaa7dabc9512812a0ec76a8cc2ea4535a484 --- M img_auth.php M opensearch_desc.php M thumb.php 3 files changed, 3 insertions(+), 3 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core refs/changes/22/207022/1 diff --git a/img_auth.php b/img_auth.php index f44cac0..22fd401 100644 --- a/img_auth.php +++ b/img_auth.php @@ -151,7 +151,7 @@ // 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; } diff --git a/opensearch_desc.php b/opensearch_desc.php index 5e5e35d..0b56972 100644 --- a/opensearch_desc.php +++ b/opensearch_desc.php @@ -94,7 +94,7 @@ // 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 ); diff --git a/thumb.php b/thumb.php index 2ea3f07..2079a64 100644 --- a/thumb.php +++ b/thumb.php @@ -502,7 +502,7 @@ 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 -- To view, visit https://gerrit.wikimedia.org/r/207022 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I074deaa7dabc9512812a0ec76a8cc2ea4535a484 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/core Gerrit-Branch: master Gerrit-Owner: Chad <ch...@wikimedia.org> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits