You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: IdnoPlugins/Photo/Photo.php
+7-4Lines changed: 7 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -110,10 +110,13 @@ function saveDataFromInput()
110
110
}
111
111
} else {
112
112
$exif = false;
113
-
// Admins get a no-EXIF error
114
-
if (\Idno\Core\Idno::site()->session()->isAdmin()) {
115
-
\Idno\Core\Idno::site()->logging()->log("Because your server doesn't provide EXIF support, Known can't preserve any rotation information in this image.");
116
-
\Idno\Core\Idno::site()->session()->addErrorMessage("Because your server doesn't provide EXIF support, Known can't preserve any rotation information in this image.");
113
+
114
+
if (!is_callable('exif_read_data')) {
115
+
// Admins get a no-EXIF error
116
+
if (\Idno\Core\Idno::site()->session()->isAdmin()) {
117
+
\Idno\Core\Idno::site()->logging()->log("Because your server doesn't provide EXIF support, Known can't preserve any rotation information in this image.");
118
+
\Idno\Core\Idno::site()->session()->addErrorMessage("Because your server doesn't provide EXIF support, Known can't preserve any rotation information in this image.");
0 commit comments