From a85e1fbbfbbaef176141e98a4691273cd06d0a65 Mon Sep 17 00:00:00 2001 From: Kevin Chabowski Date: Mon, 29 Aug 2011 21:31:35 +0200 Subject: Corrected a typo and fixed docu. --- ratatoeskr/sys/models.php | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'ratatoeskr/sys/models.php') diff --git a/ratatoeskr/sys/models.php b/ratatoeskr/sys/models.php index cd327e1..d8da3b0 100644 --- a/ratatoeskr/sys/models.php +++ b/ratatoeskr/sys/models.php @@ -14,6 +14,19 @@ require_once(dirname(__FILE__) . "/utils.php"); db_connect(); +/* + * Array: $imagetype_file_extensions + * Array of default file extensions for most IMAGETYPE_* constants + */ +$imagetype_file_extensions = array( + IMAGETYPE_GIF => "gif", + IMAGETYPE_JPEG => "jpg", + IMAGETYPE_PNG => "png", + IMAGETYPE_BMP => "bmp", + IMAGETYPE_TIFF_II => "tif", + IMAGETYPE_TIFF_MM => "tif", +); + /* * Variable: $ratatoeskr_settings * The global object. For internal use. @@ -1660,19 +1673,6 @@ class UnknownFileFormat extends Exception { } */ class IOError extends Exception { } -/* - * Array: $imagetype_file_extensions - * Array of default file extensions for most IMAGETYPE_* constants - */ -$imagetype_file_extensions = array( - IMAGETYPE_GIF => "gif", - IMAGETYPE_JPEG => "jpg", - IMAGETYPE_PNG => "png", - IMAGETYPE_BMP => "bmp", - IMAGETYPE_TIFF_II => "tif", - IMAGETYPE_TIFF_MM => "tif", -); - /* * Class: Image * Representation of an image entry. @@ -1750,7 +1750,7 @@ class Image /* * Constructor: by_id - * Get iimage by ID. + * Get image by ID. * * Parameters: * $id - The ID -- cgit v1.2.3-70-g09d2