API: Remove XML tag highlighting from non-XML formats
[lhc/web/wiklou.git] / includes / media / TransformationalImageHandler.php
index 13fb52b..3e3be3d 100644 (file)
@@ -163,8 +163,14 @@ abstract class TransformationalImageHandler extends ImageHandler {
                # Determine scaler type
                $scaler = $this->getScalerType( $dstPath );
 
+               if ( is_array( $scaler ) ) {
+                       $scalerName = get_class( $scaler[0] );
+               } else {
+                       $scalerName = $scaler;
+               }
+
                wfDebug( __METHOD__ . ": creating {$scalerParams['physicalDimensions']} " .
-                       "thumbnail at $dstPath using scaler $scaler\n" );
+                       "thumbnail at $dstPath using scaler $scalerName\n" );
 
                if ( !$image->mustRender() &&
                        $scalerParams['physicalWidth'] == $scalerParams['srcWidth']
@@ -571,7 +577,7 @@ abstract class TransformationalImageHandler extends ImageHandler {
         */
        public function rotate( $file, $params ) {
                return new MediaTransformError( 'thumbnail_error', 0, 0,
-                       "$scaler rotation not implemented" );
+                       get_class( $this ) . ' rotation not implemented' );
        }
 
        /**