mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-20 05:35:12 +00:00
whitespace
This commit is contained in:
parent
2fea5ff889
commit
83f8f8ebb8
1 changed files with 5 additions and 3 deletions
|
@ -488,8 +488,10 @@ function guess_image_type($filename, $headers = '') {
|
|||
$ext = pathinfo($filename, PATHINFO_EXTENSION);
|
||||
$ph = photo_factory('');
|
||||
$types = $ph->supportedTypes();
|
||||
foreach ($types as $m=>$e){
|
||||
if ($ext==$e) $type = $m;
|
||||
foreach($types as $m => $e) {
|
||||
if($ext === $e) {
|
||||
$type = $m;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -501,7 +503,7 @@ function guess_image_type($filename, $headers = '') {
|
|||
}
|
||||
|
||||
}
|
||||
logger('Photo: guess_image_type: type='.$type, LOGGER_DEBUG);
|
||||
logger('Photo: guess_image_type: type = ' . $type, LOGGER_DEBUG);
|
||||
return $type;
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue