]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
check for exif module
authorCash Costello <cash.costello@gmail.com>
Fri, 17 Jul 2009 00:51:16 +0000 (00:51 +0000)
committerCash Costello <cash.costello@gmail.com>
Fri, 17 Jul 2009 00:51:16 +0000 (00:51 +0000)
lib/exif.php
system.php

index 2bc25c9962927d3a360a13c9d0cd718178b5d379..5343044ea3571d240561cacb2d50c0eb029eb85e 100644 (file)
@@ -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;
index 549c51de4593ecae461da31a5b4cc90367310d36..85397fc0879a71dd61a191a1acf6968d56704696 100644 (file)
                        <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>