cvs: pear /Image_Transform/Driver Imlib.php

[email protected] ("Christian Weiske")
Newsgroups php.pear.cvs
Message-ID <cvscweiske1209596413@cvsserver>
cweiske		Wed Apr 30 23:00:13 2008 UTC

  Modified files:              
    /pear/Image_Transform/Driver	Imlib.php 
  Log:
  Return proper error code when imlib ext not found
  
  
http://cvs.php.net/viewvc.cgi/pear/Image_Transform/Driver/Imlib.php?r1=1.8&r2=1.9&diff_format=u
Index: pear/Image_Transform/Driver/Imlib.php
diff -u pear/Image_Transform/Driver/Imlib.php:1.8 pear/Image_Transform/Driver/Imlib.php:1.9
--- pear/Image_Transform/Driver/Imlib.php:1.8	Sat Apr 21 15:27:13 2007
+++ pear/Image_Transform/Driver/Imlib.php	Wed Apr 30 23:00:13 2008
@@ -14,7 +14,7 @@
 // +----------------------------------------------------------------------+
 // | Authors: Jason Rust <[email protected]>                           |
 // +----------------------------------------------------------------------+
-// $Id: Imlib.php,v 1.8 2007/04/21 15:27:13 dufuz Exp $
+// $Id: Imlib.php,v 1.9 2008/04/30 23:00:13 cweiske Exp $
 // {{{ requires
 
 require_once 'Image/Transform.php';
@@ -78,7 +78,12 @@
     function __construct()
     {
         if (!PEAR::loadExtension('imlib')) {
-            $this->isError(PEAR::raiseError('Couldn\'t find the imlib extension.', true));
+            $this->isError(
+                PEAR::raiseError(
+                    'Couldn\'t find the imlib extension.',
+                    IMAGE_TRANSFORM_ERROR_UNSUPPORTED
+                )
+            );
         }
     }
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.