X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fmedia%2FIPTC.php;h=544dd21152782837d81a8cb8ae005f1adab57e21;hb=5e5579d04cfac26317ff13cd85ed8453a113c10f;hp=4191cde03561e48da0d8ac18c5f248d3fe21b39a;hpb=dac3d8d7f28059ba7b30b4b74a5c0ec575c5854a;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/media/IPTC.php b/includes/media/IPTC.php index 4191cde035..544dd21152 100644 --- a/includes/media/IPTC.php +++ b/includes/media/IPTC.php @@ -63,7 +63,7 @@ class IPTC { wfDebugLog( 'iptc', "IPTC tag $tag had only whitespace as its value." ); continue; } - switch( $tag ) { + switch ( $tag ) { case '2#120': /*IPTC caption. mapped with exif ImageDescription*/ $data['ImageDescription'] = self::convIPTC( $val, $c ); break; @@ -396,7 +396,7 @@ class IPTC { return null; } - $tz = ( intval( substr( $time, 7, 2 ) ) *60*60 ) + $tz = ( intval( substr( $time, 7, 2 ) ) * 60 * 60 ) + ( intval( substr( $time, 9, 2 ) ) * 60 ); if ( substr( $time, 6, 1 ) === '-' ) { @@ -423,7 +423,7 @@ class IPTC { * * @return string|array */ - private static function convIPTC ( $data, $charset ) { + private static function convIPTC( $data, $charset ) { if ( is_array( $data ) ) { foreach ( $data as &$val ) { $val = self::convIPTCHelper( $val, $charset ); @@ -441,7 +441,7 @@ class IPTC { * * @return string */ - private static function convIPTCHelper ( $data, $charset ) { + private static function convIPTCHelper( $data, $charset ) { if ( $charset ) { wfSuppressWarnings(); $data = iconv( $charset, "UTF-8//IGNORE", $data );