Index: branches/wmf/1.16wmf4/includes/media/Bitmap.php |
— | — | @@ -159,9 +159,9 @@ |
160 | 160 | // a pixel. |
161 | 161 | " -thumbnail " . wfEscapeShellArg( "{$physicalWidth}x{$physicalHeight}!" ) . |
162 | 162 | // Add the source url as a comment to the thumb, but don't add the flag if there's no comment |
163 | | - $comment !== '' |
| 163 | + ( $comment !== '' |
164 | 164 | ? " -set comment " . wfEscapeShellArg( $this->escapeMagickProperty( $comment ) ) |
165 | | - : '' . |
| 165 | + : '' ) . |
166 | 166 | " -depth 8 $sharpen " . |
167 | 167 | wfEscapeShellArg( $this->escapeMagickOutput( $dstPath ) ) . " 2>&1"; |
168 | 168 | wfDebug( __METHOD__.": running ImageMagick: $cmd\n" ); |