summaryrefslogtreecommitdiffstats
path: root/user_guide/libraries
diff options
context:
space:
mode:
Diffstat (limited to 'user_guide/libraries')
-rw-r--r--user_guide/libraries/image_lib.html6
-rw-r--r--user_guide/libraries/input.html2
2 files changed, 4 insertions, 4 deletions
diff --git a/user_guide/libraries/image_lib.html b/user_guide/libraries/image_lib.html
index 37832fa6e..77f85ec6d 100644
--- a/user_guide/libraries/image_lib.html
+++ b/user_guide/libraries/image_lib.html
@@ -104,7 +104,7 @@ $this->load->library('image_lib', $config);
$this->image_lib->resize();</code>
<p>The above code tells the <dfn>image_resize</dfn> function to look for an image called <em>mypic.jpg</em>
-located in the <dfn>source_image</dfn> folder, then create a thumbnail that is 75 X 50 pixels using the GD2 <dfn>image_library</dfn>.
+located in the <dfn>source_image</dfn> folder, then create a thumbnail that is 75 X 50 pixels using the GD <dfn>image_library</dfn>.
Since the <dfn>maintain_ratio</dfn> option is enabled, the thumb will be as close to the target <dfn>width</dfn> and
<dfn>height</dfn> as possible while preserving the original aspect ratio. The thumbnail will be called <em>mypic_thumb.jpg</em>
</p>
@@ -145,7 +145,7 @@ tags in the function, like this:</p>
<h2>Preferences</h2>
-<p>The 14 available preferences described below allow you to tailor the image processing to suit your needs.</p>
+<p>The preferences described below allow you to tailor the image processing to suit your needs.</p>
<p>Note that not all preferences are available for every
function. For example, the x/y axis preferences are only available for image cropping. Likewise, the width and height
@@ -464,7 +464,7 @@ $this->image_lib->watermark();</code>
<p>The above example will use a 16 pixel True Type font to create the text "Copyright 2006 - John Doe". The watermark
will be positioned at the bottom/center of the image, 20 pixels from the bottom of the image.</p>
-<p class="important"><strong>Note:</strong> In order for the image class to be allowed to do any processing, the image file must have file permissions of 777.</p>
+<p class="important"><strong>Note:</strong> In order for the image class to be allowed to do any processing, the image file must have &quot;write&quot; file permissions. For example, 777.</p>
<h2>Watermarking Preferences</h2>
diff --git a/user_guide/libraries/input.html b/user_guide/libraries/input.html
index bb1a5f20d..311dab82f 100644
--- a/user_guide/libraries/input.html
+++ b/user_guide/libraries/input.html
@@ -178,7 +178,7 @@ else<br />
<p>Takes an IP address as input and returns TRUE or FALSE (boolean) if it is valid or not. Note: The $this->input->ip_address() function above
validates the IP automatically.</p>
-<code>if (! valid_ip($ip))<br />
+<code>if (! $this-&gt;input-&gt;valid_ip($ip))<br />
{<br />
&nbsp;&nbsp;&nbsp;&nbsp; echo 'Not Valid';<br />
}<br />