Skip to content

Commit

Permalink
Added $cateogry variable for session in case the word "category" alre…
Browse files Browse the repository at this point in the history
…ady is in use

Added check if session has already started, otherwise E_NOTICE is thrown

Simplified if statements for categorize tablets as desktops and categorize TVs as desktops

Updated function names for device category groups

Updated to version 1.1
  • Loading branch information
bjankord committed Feb 29, 2012
1 parent 006ca67 commit 8c02a2f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions categorizr.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@
**/

function categorizr(){
// Categorizr Options -----------------------------------------------------------------------------------------------------------------
// Categorizr Options ------------------------------------------------------------------------------------------------------------------

$catergorize_tablets_as_desktops = FALSE; //If TRUE, tablets will be categorized as desktops
$catergorize_tvs_as_desktops = FALSE; //If TRUE, smartTVs will be categorized as desktops

// End Categorizr Options --------------------------------------------------------------------------------------------------------------
// End Categorizr Options ---------------------------------------------------------------------------------------------------------------

// Category name - In the event the script is already using 'category' in the session variables, you could easily change it by only needing to change this value.
$category = 'category';
Expand Down

0 comments on commit 8c02a2f

Please sign in to comment.