diff options
author | Omar <omar@elav.net.br> | 2012-07-02 18:50:17 +0200 |
---|---|---|
committer | Omar <omar@elav.net.br> | 2012-07-02 18:50:17 +0200 |
commit | 24063af4005804e271ac04fecca4a410a0a7b269 (patch) | |
tree | a3feb81dbe6e1ae66c14c989183c35c400fb4a06 /system/libraries/Image_lib.php | |
parent | bb531d6284e3a936e8e2184104edd9a665c5c363 (diff) |
Fixed code styling
Diffstat (limited to 'system/libraries/Image_lib.php')
-rw-r--r-- | system/libraries/Image_lib.php | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/system/libraries/Image_lib.php b/system/libraries/Image_lib.php index ebd214ef0..899b995d4 100644 --- a/system/libraries/Image_lib.php +++ b/system/libraries/Image_lib.php @@ -855,10 +855,14 @@ class CI_Image_lib { } else // Resize { - if($this->maintain_ratio) - $cmd .= " -resize ".$this->width."x".$this->height." \"$this->full_src_path\" \"$this->full_dst_path\" 2>&1"; + if($this->maintain_ratio === TRUE) + { + $cmd .= ' -resize '.$this->width.'x'.$this->height.' "'.$this->full_src_path.'" "'.$this->full_dst_path.'" 2>&1'; + } else - $cmd .= " -resize ".$this->width."x".$this->height."\\! \"$this->full_src_path\" \"$this->full_dst_path\" 2>&1"; + { + $cmd .= ' -resize '.$this->width.'x'.$this->height.'\! "'.$this->full_src_path.'" "'.$this->full_dst_path.'" 2>&1'; + } } $retval = 1; |