Index: branches/wmf/1.16wmf4/includes/media/Bitmap.php |
— | — | @@ -159,8 +159,8 @@ |
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 | | - $params['comment'] !== '' |
164 | | - ? " -set comment " . wfEscapeShellArg( $this->escapeMagickProperty( $params['comment'] ) ) |
| 163 | + $comment !== '' |
| 164 | + ? " -set comment " . wfEscapeShellArg( $this->escapeMagickProperty( $comment ) ) |
165 | 165 | : '' . |
166 | 166 | " -depth 8 $sharpen " . |
167 | 167 | wfEscapeShellArg( $this->escapeMagickOutput( $dstPath ) ) . " 2>&1"; |