Ticket #18309: simplepie-1-2.diff
File simplepie-1-2.diff, 1.3 KB (added by , 13 years ago) |
---|
-
class-simplepie.php
1 1 <?php 2 if ( !class_exists( 'SimplePie' ) ) :3 2 /** 4 3 * SimplePie 5 4 * … … 1831 1830 } 1832 1831 1833 1832 /** 1834 * Return the error message for the occur red error1833 * Return the error message for the occured error 1835 1834 * 1836 1835 * @access public 1837 1836 * @return string Error message … … 4067 4066 $temp = explode(':', $this->sanitize($duration_parent[0]['data'], SIMPLEPIE_CONSTRUCT_TEXT)); 4068 4067 if (sizeof($temp) > 0) 4069 4068 { 4070 $seconds = (int)array_pop($temp);4069 (int) $seconds = array_pop($temp); 4071 4070 } 4072 4071 if (sizeof($temp) > 0) 4073 4072 { 4074 $minutes = (int)array_pop($temp);4073 (int) $minutes = array_pop($temp); 4075 4074 $seconds += $minutes * 60; 4076 4075 } 4077 4076 if (sizeof($temp) > 0) 4078 4077 { 4079 $hours = (int)array_pop($temp);4078 (int) $hours = array_pop($temp); 4080 4079 $seconds += $hours * 3600; 4081 4080 } 4082 4081 unset($temp); … … 9427 9426 } 9428 9427 9429 9428 // This is first, as behaviour of this is completely predictable 9430 if ($input === ' windows-1252' && $output === 'UTF-8')9429 if ($input === 'Windows-1252' && $output === 'UTF-8') 9431 9430 { 9432 9431 return SimplePie_Misc::windows_1252_to_utf8($data); 9433 9432 } … … 14998 14997 } 14999 14998 } 15000 14999 } 15001 endif; 15000 15002 15001 ?>