[geeklog-cvs] geeklog: Added a check to see if gdlib is enabled/included to av...

geeklog-cvs at lists.geeklog.net geeklog-cvs at lists.geeklog.net
Sat Nov 15 15:12:59 EST 2008


details:   http://project.geeklog.net/cgi-bin/hgweb.cgi/rev/5aca9b24800f
changeset: 6465:5aca9b24800f
user:      Dirk Haun <dirk at haun-online.de>
date:      Sat Nov 15 13:27:09 2008 +0100
description:
Added a check to see if gdlib is enabled/included to avoid possibly confusing messages about missing suport for a specific format.

diffstat:

1 file changed, 6 insertions(+)
system/classes/upload.class.php |    6 ++++++

diffs (16 lines):

diff -r fc94f3a10e6a -r 5aca9b24800f system/classes/upload.class.php
--- a/system/classes/upload.class.php	Thu Nov 13 10:04:36 2008 -0500
+++ b/system/classes/upload.class.php	Sat Nov 15 13:27:09 2008 +0100
@@ -590,6 +590,12 @@
                           . $this->_getDestinationName();
 
                 if (!$this->_keepOriginalFile ($filename)) {
+                    exit;
+                }
+
+                if (!function_exists('gd_info')) {
+                    $this->_addError('GD library does not seem to be enabled.');
+                    $this->printErrors();
                     exit;
                 }
 



More information about the geeklog-cvs mailing list