From 0b59f270a432f8c7b6128981f0a39b4a2e2fbd34 Mon Sep 17 00:00:00 2001 From: Derek Jones Date: Tue, 13 May 2008 04:22:33 +0000 Subject: Some sweeping syntax changes for consistency: (! foo) changed to ( ! foo) || changed to OR changed newline standardization code in various places from preg_replace to str_replace --- user_guide/libraries/image_lib.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'user_guide/libraries/image_lib.html') diff --git a/user_guide/libraries/image_lib.html b/user_guide/libraries/image_lib.html index f905b88f8..8fd751317 100644 --- a/user_guide/libraries/image_lib.html +++ b/user_guide/libraries/image_lib.html @@ -132,7 +132,7 @@ error message using this function:

A good practice is use the processing function conditionally, showing an error upon failure, like this:

-if (! $this->image_lib->resize())
+if ( ! $this->image_lib->resize())
{
    echo $this->image_lib->display_errors();
}
@@ -370,7 +370,7 @@ $config['y_axis'] = '60';
$this->image_lib->initialize($config);

-if (! $this->image_lib->crop())
+if ( ! $this->image_lib->crop())
{
    echo $this->image_lib->display_errors();
}
@@ -407,7 +407,7 @@ $config['rotation_angle'] = 'hor';
$this->image_lib->initialize($config);

-if (! $this->image_lib->rotate())
+if ( ! $this->image_lib->rotate())
{
    echo $this->image_lib->display_errors();
} -- cgit v1.2.3-24-g4f1b