cvs: php4 /pear/Cache Graphics.php
| From: | Jon Parise | Date: | Wed, 22 Aug 2001 00:04:34 +0000 |
| Subject: | cvs: php4 /pear/Cache Graphics.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-615@lists.php.net to get a copy of this message | ||
jon Tue Aug 21 20:04:34 2001 EDT
Modified files:
/php4/pear/Cache Graphics.php
Log:
- Correct typo (; -> ,).
- Added curly braces.
Index: php4/pear/Cache/Graphics.php
diff -u php4/pear/Cache/Graphics.php:1.7 php4/pear/Cache/Graphics.php:1.8
--- php4/pear/Cache/Graphics.php:1.7 Sat Jul 7 19:15:13 2001
+++ php4/pear/Cache/Graphics.php Tue Aug 21 20:04:34 2001
@@ -15,7 +15,7 @@
// | Authors: Ulf Wendel <ulf.wendel@phpdoc.de> |
// +----------------------------------------------------------------------+
//
-// $Id: Graphics.php,v 1.7 2001/07/07 23:15:13 sbergmann Exp $
+// $Id: Graphics.php,v 1.8 2001/08/22 00:04:34 jon Exp $
require_once 'Cache.php';
@@ -66,7 +66,7 @@
* the output buffer. Modify it if required!
*
* @author Ulf Wendel <ulf.wendel@phpdoc.de>
-* @version $Id: Graphics.php,v 1.7 2001/07/07 23:15:13 sbergmann Exp $
+* @version $Id: Graphics.php,v 1.8 2001/08/22 00:04:34 jon Exp $
* @package Cache
*/
class Cache_Graphics extends Cache {
@@ -215,11 +215,13 @@
// Check if the requested image type is supported by the GD lib.
// If not, try a callback to the first available image type.
if (!isset($this->imagetypes[$format]) || !(ImageTypes() &
$this->imagetypes[$format])) {
- foreach ($this->imagetypes as $supported => $bitmask)
- if (ImageTypes() & $bitmask)
+ foreach ($this->imagetypes as $supported => $bitmask) {
+ if (ImageTypes() & $bitmask) {
new Cache_Error("The build in GD lib does not support the image type
$format. Fallback to $supported.", __FILE__, __LINE__);
- else
- return new Cache_Error("Hmm, is your PHP build with GD support? Can't
find any supported types.", __FILE__; __LINE__);
+ } else {
+ return new Cache_Error("Hmm, is your PHP build with GD support? Can't
find any supported types.", __FILE__, __LINE__);
+ }
+ }
}
if ($image = $this->get($id, $this->cache_group))
@@ -329,4 +331,4 @@
} // end class Cache_Graphics
-?>
\ No newline at end of file
+?>