diff options
author | Cash Costello <cash.costello@gmail.com> | 2009-07-17 00:51:16 +0000 |
---|---|---|
committer | Cash Costello <cash.costello@gmail.com> | 2009-07-17 00:51:16 +0000 |
commit | fba9d91ec8f173f0f3cc939eb70b94530c57151c (patch) | |
tree | 3f8dd088cd6440ea05199877edc6204d5378414e | |
parent | 19714b046eb9c385a671d1c8f1e8890d694400b7 (diff) | |
download | elgg-fba9d91ec8f173f0f3cc939eb70b94530c57151c.tar.gz elgg-fba9d91ec8f173f0f3cc939eb70b94530c57151c.tar.bz2 |
check for exif module
-rw-r--r-- | lib/exif.php | 5 | ||||
-rw-r--r-- | system.php | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/lib/exif.php b/lib/exif.php index 2bc25c996..5343044ea 100644 --- a/lib/exif.php +++ b/lib/exif.php @@ -1,6 +1,11 @@ <?php function td_get_exif($file) { + + // catch for those who don't have exif module loaded + if (!is_callable('exif_read_data')) + return; + $mime = $file->mimetype; if ($mime != 'image/jpeg' && $mime != 'image/pjpeg') return; diff --git a/system.php b/system.php index 549c51de4..85397fc08 100644 --- a/system.php +++ b/system.php @@ -118,6 +118,11 @@ <td><?php echo (is_callable('imagegif')) ? 'Enabled' : 'Disabled'; ?></td> <td></td> </tr> + <tr> + <td>EXIF</td> + <td><?php echo (is_callable('exif_read_data')) ? 'Enabled' : 'Disabled'; ?></td> + <td></td> + </tr> </table> <div style="margin-top:20px;"> <a href="<?php echo $CONFIG->url . "mod/tidypics/docs/configure_server.txt"; ?>">Server configuration doc</a> |