diff options
author | Aaron Schulz <aschulz@wikimedia.org> | 2014-12-08 23:23:30 -0800 |
---|---|---|
committer | Kunal Mehta <legoktm@gmail.com> | 2014-12-10 12:26:59 -0800 |
commit | e369f66d0029594d1ce289f7a505d3ce20250828 (patch) | |
tree | d86ce1bd14580a882b98fe1300ff93431032bece /includes/media/TransformationalImageHandler.php | |
parent | 6662eb079e3c78ad61833a4326cf23eeddb78fa2 (diff) | |
download | mediawikicore-e369f66d0029594d1ce289f7a505d3ce20250828.tar.gz mediawikicore-e369f66d0029594d1ce289f7a505d3ce20250828.zip |
Replace wfRunHooks calls with direct Hooks::run calls
* This avoids the overhead of an extra function call
Change-Id: I8ee996f237fd111873ab51965bded3d91e61e4dd
Diffstat (limited to 'includes/media/TransformationalImageHandler.php')
-rw-r--r-- | includes/media/TransformationalImageHandler.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/media/TransformationalImageHandler.php b/includes/media/TransformationalImageHandler.php index b3ae2965696a..5b9982def9b4 100644 --- a/includes/media/TransformationalImageHandler.php +++ b/includes/media/TransformationalImageHandler.php @@ -64,7 +64,7 @@ abstract class TransformationalImageHandler extends ImageHandler { # Check if the file is smaller than the maximum image area for thumbnailing # For historical reasons, hook starts with BitmapHandler $checkImageAreaHookResult = null; - wfRunHooks( + Hooks::run( 'BitmapHandlerCheckImageArea', array( $image, &$params, &$checkImageAreaHookResult ) ); @@ -240,7 +240,7 @@ abstract class TransformationalImageHandler extends ImageHandler { # Try a hook. Called "Bitmap" for historical reasons. /** @var $mto MediaTransformOutput */ $mto = null; - wfRunHooks( 'BitmapHandlerTransform', array( $this, $image, &$scalerParams, &$mto ) ); + Hooks::run( 'BitmapHandlerTransform', array( $this, $image, &$scalerParams, &$mto ) ); if ( !is_null( $mto ) ) { wfDebug( __METHOD__ . ": Hook to BitmapHandlerTransform created an mto\n" ); $scaler = 'hookaborted'; |