summaryrefslogtreecommitdiff
path: root/kohana/libraries/Image.php
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-03-04 18:15:56 +0000
committerBharat Mediratta <bharat@menalto.com>2009-03-04 18:15:56 +0000
commit014999758e2f4efa433a9c4e71d0551e0b5b318a (patch)
tree8d15d1130c44849ddee8fcb9f6c9aa7603822b99 /kohana/libraries/Image.php
parentc0e65b202977c78c4562502373f630b8f835f1ff (diff)
Updated Kohana to r4033
Diffstat (limited to 'kohana/libraries/Image.php')
-rw-r--r--kohana/libraries/Image.php50
1 files changed, 25 insertions, 25 deletions
diff --git a/kohana/libraries/Image.php b/kohana/libraries/Image.php
index 6fcce090..c9e82a1c 100644
--- a/kohana/libraries/Image.php
+++ b/kohana/libraries/Image.php
@@ -134,7 +134,7 @@ class Image_Core {
}
else
{
- throw new Kohana_Exception('core.invalid_property', $column, get_class($this));
+ throw new Kohana_Exception('core.invalid_property', $property, get_class($this));
}
}
@@ -358,39 +358,39 @@ class Image_Core {
chmod($new_image, $chmod);
}
}
-
+
// Reset actions. Subsequent save() or render() will not apply previous actions.
if ($keep_actions === FALSE)
$this->actions = array();
-
+
return $status;
}
-
- /**
- * Output the image to the browser.
- *
+
+ /**
+ * Output the image to the browser.
+ *
* @param boolean keep or discard image process actions
- * @return object
- */
- public function render($keep_actions = FALSE)
- {
- $new_image = $this->image['file'];
-
- // Separate the directory and filename
- $dir = pathinfo($new_image, PATHINFO_DIRNAME);
- $file = pathinfo($new_image, PATHINFO_BASENAME);
-
- // Normalize the path
- $dir = str_replace('\\', '/', realpath($dir)).'/';
-
- // Process the image with the driver
- $status = $this->driver->process($this->image, $this->actions, $dir, $file, $render = TRUE);
-
+ * @return object
+ */
+ public function render($keep_actions = FALSE)
+ {
+ $new_image = $this->image['file'];
+
+ // Separate the directory and filename
+ $dir = pathinfo($new_image, PATHINFO_DIRNAME);
+ $file = pathinfo($new_image, PATHINFO_BASENAME);
+
+ // Normalize the path
+ $dir = str_replace('\\', '/', realpath($dir)).'/';
+
+ // Process the image with the driver
+ $status = $this->driver->process($this->image, $this->actions, $dir, $file, $render = TRUE);
+
// Reset actions. Subsequent save() or render() will not apply previous actions.
if ($keep_actions === FALSE)
$this->actions = array();
-
- return $status;
+
+ return $status;
}
/**