From 4b9c62980599228f070b401c7673dce8085b0c61 Mon Sep 17 00:00:00 2001 From: Derek Jones Date: Fri, 1 Jul 2011 17:40:48 -0500 Subject: backed out 648b42a75739, which was a NON-trivial whitespace commit. It broke the Typography class's string replacements, for instance --- user_guide/libraries/user_agent.html | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'user_guide/libraries/user_agent.html') diff --git a/user_guide/libraries/user_agent.html b/user_guide/libraries/user_agent.html index 6b23102b1..24e8071f3 100644 --- a/user_guide/libraries/user_agent.html +++ b/user_guide/libraries/user_agent.html @@ -70,13 +70,13 @@ In addition you can get referrer information as well as language and supported c

User Agent Definitions

-

The user agent name definitions are located in a config file located at: application/config/user_agents.php. You may add items to the +

The user agent name definitions are located in a config file located at: application/config/user_agents.php. You may add items to the various user agent arrays if needed.

Example

When the User Agent class is initialized it will attempt to determine whether the user agent browsing your site is -a web browser, a mobile device, or a robot. It will also gather the platform information if it is available.

+a web browser, a mobile device, or a robot. It will also gather the platform information if it is available.

@@ -84,7 +84,7 @@ $this->load->library('user_agent');

if ($this->agent->is_browser())
{
-    $agent = $this->agent->browser().' '.$this->agent->version();
+    $agent = $this->agent->browser().' '.$this->agent->version();
}
elseif ($this->agent->is_robot())
{
@@ -143,7 +143,7 @@ else

Returns TRUE/FALSE (boolean) if the user agent is a known robot.

Note:  The user agent library only contains the most common robot -definitions. It is not a complete list of bots. There are hundreds of them so searching for each one would not be +definitions. It is not a complete list of bots. There are hundreds of them so searching for each one would not be very efficient. If you find that some bots that commonly visit your site are missing from the list you can add them to your application/config/user_agents.php file.

@@ -176,7 +176,7 @@ very efficient. If you find that some bots that commonly visit your site are mis

$this->agent->agent_string()

-

Returns a string containing the full user agent string. Typically it will be something like this:

+

Returns a string containing the full user agent string. Typically it will be something like this:

Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.0.4) Gecko/20060613 Camino/1.0.2 -- cgit v1.2.3-24-g4f1b