summaryrefslogtreecommitdiffstats
path: root/system/libraries
diff options
context:
space:
mode:
authorEric Barnes <eric@ericlbarnes.com>2011-12-06 03:53:48 +0100
committerEric Barnes <eric@ericlbarnes.com>2011-12-06 03:53:48 +0100
commitdc5c78528d7298a3f0330fc1be23a0d9f445cc81 (patch)
treea2a2b4d76f9f434b9f8089c303c5b3e2076f9970 /system/libraries
parent8a510c72025a7de4591716df5bca8129f6cf1d13 (diff)
parentb840a6704feb7a2439bbd3a9a23127dafc7b42f7 (diff)
Merge pull request #608 from spol/Image_lib-bugfix
Fixes an issue with the Image_lib class not clearing properties completely
Diffstat (limited to 'system/libraries')
-rw-r--r--system/libraries/Image_lib.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/system/libraries/Image_lib.php b/system/libraries/Image_lib.php
index beb463b32..ceb31d1f0 100644
--- a/system/libraries/Image_lib.php
+++ b/system/libraries/Image_lib.php
@@ -116,7 +116,7 @@ class CI_Image_lib {
*/
function clear()
{
- $props = array('source_folder', 'dest_folder', 'source_image', 'full_src_path', 'full_dst_path', 'new_image', 'image_type', 'size_str', 'quality', 'orig_width', 'orig_height', 'rotation_angle', 'x_axis', 'y_axis', 'create_fnc', 'copy_fnc', 'wm_overlay_path', 'wm_use_truetype', 'dynamic_output', 'wm_font_size', 'wm_text', 'wm_vrt_alignment', 'wm_hor_alignment', 'wm_padding', 'wm_hor_offset', 'wm_vrt_offset', 'wm_font_color', 'wm_use_drop_shadow', 'wm_shadow_color', 'wm_shadow_distance', 'wm_opacity');
+ $props = array('source_folder', 'dest_folder', 'source_image', 'full_src_path', 'full_dst_path', 'new_image', 'image_type', 'size_str', 'quality', 'orig_width', 'orig_height', 'rotation_angle', 'x_axis', 'y_axis', 'create_fnc', 'copy_fnc', 'wm_overlay_path', 'wm_use_truetype', 'dynamic_output', 'wm_font_size', 'wm_text', 'wm_vrt_alignment', 'wm_hor_alignment', 'wm_padding', 'wm_hor_offset', 'wm_vrt_offset', 'wm_font_color', 'wm_use_drop_shadow', 'wm_shadow_color', 'wm_shadow_distance', 'wm_opacity', 'width', 'height');
foreach ($props as $val)
{
@@ -125,6 +125,9 @@ class CI_Image_lib {
// special consideration for master_dim
$this->master_dim = 'auto';
+
+ // special consideration for create_thumb
+ $this->create_thumb = FALSE;
}
// --------------------------------------------------------------------