X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fmedia%2FJpeg.php;h=810b9af6089f0da7db9e081a43a0c521b23896ee;hb=4ff813680;hp=918d4ae207dadfbfb5a53a9ca1f806c304a40d82;hpb=7036e7b68d4165e14d43fb34f80556af7a68f95b;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/media/Jpeg.php b/includes/media/Jpeg.php index 918d4ae207..810b9af608 100644 --- a/includes/media/Jpeg.php +++ b/includes/media/Jpeg.php @@ -51,8 +51,8 @@ class JpegHandler extends ExifBitmapHandler { } /** Validate and normalize quality value to be between 1 and 100 (inclusive). - * @param int $value quality value, will be converted to integer or 0 if invalid - * @return bool true if the value is valid + * @param int $value Quality value, will be converted to integer or 0 if invalid + * @return bool True if the value is valid */ private static function validateQuality( $value ) { return $value === 'low'; @@ -143,10 +143,8 @@ class JpegHandler extends ExifBitmapHandler { " -outfile " . wfEscapeShellArg( $params['dstPath'] ) . " " . wfEscapeShellArg( $params['srcPath'] ); wfDebug( __METHOD__ . ": running jpgtran: $cmd\n" ); - wfProfileIn( 'jpegtran' ); $retval = 0; $err = wfShellExecWithStderr( $cmd, $retval ); - wfProfileOut( 'jpegtran' ); if ( $retval !== 0 ) { $this->logErrorForExternalProcess( $retval, $err, $cmd );