From: Roan Kattouw Date: Thu, 25 Nov 2010 12:34:21 +0000 (+0000) Subject: Fix r77261 by adding the parentheses already added in 1.16wmf4 in r77264 X-Git-Tag: 1.31.0-rc.0~33737 X-Git-Url: http://git.cyclocoop.org/%24href?a=commitdiff_plain;h=04e618aad7bfff5aa3fe6d55a2503cc57f45471c;p=lhc%2Fweb%2Fwiklou.git Fix r77261 by adding the parentheses already added in 1.16wmf4 in r77264 --- diff --git a/includes/media/Bitmap.php b/includes/media/Bitmap.php index bb1bbbaf43..23803946ea 100644 --- a/includes/media/Bitmap.php +++ b/includes/media/Bitmap.php @@ -239,9 +239,9 @@ class BitmapHandler extends ImageHandler { // a pixel. " -thumbnail " . wfEscapeShellArg( "{$params['physicalDimensions']}!" ) . // Add the source url as a comment to the thumb, but don't add the flag if there's no comment - $params['comment'] !== '' + ( $params['comment'] !== '' ? " -set comment " . wfEscapeShellArg( $this->escapeMagickProperty( $params['comment'] ) ) - : '' . + : '' ) . " -depth 8 $sharpen" . " {$animation_post} " . wfEscapeShellArg( $this->escapeMagickOutput( $params['dstPath'] ) ) . " 2>&1";