Changeset 7507
- Timestamp:
- 10/30/10 22:22:15 (3 years ago)
- Files:
-
- 1 modified
-
trunk/admin/include/functions_metadata.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/include/functions_metadata.php
r5196 r7507 39 39 if (preg_match('/(\d{4})(\d{2})(\d{2})/', $value, $matches)) 40 40 { 41 $iptc[$pwg_key] = $matches[1].'-'.$matches[2].'-'.$matches[3]; 41 $year = $matches[1]; 42 $month = $matches[2]; 43 $day = $matches[3]; 44 45 if (!checkdate($month, $day, $year)) 46 { 47 // we suppose the year is correct 48 $month = 1; 49 $day = 1; 50 } 51 52 $iptc[$pwg_key] = $year.'-'.$month.'-'.$day; 42 53 } 43 54 }
![(please configure the [header_logo] section in trac.ini)](http://piwigo.org/screenshots/piwigo_logo_on_white.png)