Index: trunk/phase3/includes/filerepo/File.php |
— | — | @@ -1476,18 +1476,15 @@ |
1477 | 1477 | # Get size in bytes |
1478 | 1478 | $info['size'] = filesize( $path ); |
1479 | 1479 | |
1480 | | - wfDebug("XXX $path $ext {$info[file-mime]} {$info[mime]} {$info[major_mime]} {$info[minor_mime]} {$info[media_type]} {$info[size]}\n"); |
1481 | 1480 | # Height, width and metadata |
1482 | 1481 | $handler = MediaHandler::getHandler( $info['mime'] ); |
1483 | 1482 | if ( $handler ) { |
1484 | 1483 | $tempImage = (object)array(); |
1485 | 1484 | $info['metadata'] = $handler->getMetadata( $tempImage, $path ); |
1486 | 1485 | $gis = $handler->getImageSize( $tempImage, $path, $info['metadata'] ); |
1487 | | - wfDebug("XXX $path has handler, metadata is {$info[metadata]}\n"); |
1488 | 1486 | } else { |
1489 | 1487 | $gis = false; |
1490 | 1488 | $info['metadata'] = ''; |
1491 | | - wfDebug("XXX $path no handler, no metadata\n"); |
1492 | 1489 | } |
1493 | 1490 | $info['sha1'] = self::sha1Base36( $path ); |
1494 | 1491 | |