Skip to content

Commit

Permalink
Smarter EXIF rule
Browse files Browse the repository at this point in the history
  • Loading branch information
benwerd committed Feb 1, 2016
1 parent 39478fd commit acf6115
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions IdnoPlugins/Photo/Photo.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,13 @@ function saveDataFromInput()
}
} else {
$exif = false;
// Admins get a no-EXIF error
if (\Idno\Core\Idno::site()->session()->isAdmin()) {
\Idno\Core\Idno::site()->logging()->log("Because your server doesn't provide EXIF support, Known can't preserve any rotation information in this image.");
\Idno\Core\Idno::site()->session()->addErrorMessage("Because your server doesn't provide EXIF support, Known can't preserve any rotation information in this image.");

if (!is_callable('exif_read_data')) {
// Admins get a no-EXIF error
if (\Idno\Core\Idno::site()->session()->isAdmin()) {
\Idno\Core\Idno::site()->logging()->log("Because your server doesn't provide EXIF support, Known can't preserve any rotation information in this image.");
\Idno\Core\Idno::site()->session()->addErrorMessage("Because your server doesn't provide EXIF support, Known can't preserve any rotation information in this image.");
}
}
}

Expand Down

0 comments on commit acf6115

Please sign in to comment.