X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Fmedia%2FIPTC.php;h=894043a4e571bd5ee87e998b608f8158aed4ff6f;hp=343adc20882752de26a82c67817362bcc85f99e4;hb=11ee7f78da9776db26098642a151a288f98bea14;hpb=d84c3dde5af90c5c3497d18e427a5c2a38ac6ca8 diff --git a/includes/media/IPTC.php b/includes/media/IPTC.php index 343adc2088..894043a4e5 100644 --- a/includes/media/IPTC.php +++ b/includes/media/IPTC.php @@ -353,20 +353,20 @@ class IPTC { * @todo Potentially this should also capture the timezone offset. * @param array $date The date tag * @param array $time The time tag - * @param string $c The charset + * @param string $charset * @return string Date in EXIF format. */ - private static function timeHelper( $date, $time, $c ) { + private static function timeHelper( $date, $time, $charset ) { if ( count( $date ) === 1 ) { // the standard says this should always be 1 // just double checking. - list( $date ) = self::convIPTC( $date, $c ); + list( $date ) = self::convIPTC( $date, $charset ); } else { return null; } if ( count( $time ) === 1 ) { - list( $time ) = self::convIPTC( $time, $c ); + list( $time ) = self::convIPTC( $time, $charset ); $dateOnly = false; } else { $time = '000000+0000'; // placeholder @@ -420,7 +420,7 @@ class IPTC { /** * Helper function to convert charset for iptc values. * @param string|array $data The iptc string - * @param string $charset The charset + * @param string $charset * * @return string|array */ @@ -439,7 +439,7 @@ class IPTC { /** * Helper function of a helper function to convert charset for iptc values. * @param string|array $data The IPTC string - * @param string $charset The charset + * @param string $charset * * @return string */