summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2009-04-20 05:38:06 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2009-04-20 05:38:06 +0000
commitf6db2a4cd7fc78e1c68eb3a4e004f796c550793c (patch)
tree87914f26074092d7a69e10bdf5a185315f083fc8
parentd91848a92a62ad16a3b85130c30fdb99707c14df (diff)
downloadbrdo-f6db2a4cd7fc78e1c68eb3a4e004f796c550793c.tar.gz
brdo-f6db2a4cd7fc78e1c68eb3a4e004f796c550793c.tar.bz2
#438810 by drewish: Fix image_get_info() docs.
-rw-r--r--includes/image.inc10
1 files changed, 6 insertions, 4 deletions
diff --git a/includes/image.inc b/includes/image.inc
index 24e90dbf7..df31990ac 100644
--- a/includes/image.inc
+++ b/includes/image.inc
@@ -103,6 +103,8 @@ function image_toolkit_invoke($method, stdClass $image, array $params = array())
*
* Drupal only supports GIF, JPG and PNG file formats.
*
+ * @param $filepath
+ * String specifying the path of the image file.
* @return
* FALSE, if the file could not be found or is not an image. Otherwise, a
* keyed array containing information about the image:
@@ -112,14 +114,14 @@ function image_toolkit_invoke($method, stdClass $image, array $params = array())
* 'mime_type' - MIME type ('image/jpeg', 'image/gif', 'image/png').
* 'file_size' - File size in bytes.
*/
-function image_get_info($file) {
- if (!is_file($file)) {
+function image_get_info($filepath) {
+ if (!is_file($filepath)) {
return FALSE;
}
$details = FALSE;
- $data = @getimagesize($file);
- $file_size = @filesize($file);
+ $data = @getimagesize($filepath);
+ $file_size = @filesize($filepath);
if (isset($data) && is_array($data)) {
$extensions = array('1' => 'gif', '2' => 'jpg', '3' => 'png');