From 78d3aed14f2252bec97905f03d4f4109e6ac5f20 Mon Sep 17 00:00:00 2001 From: Danang Probo Sayekti Date: Sun, 16 Feb 2014 22:27:02 +0700 Subject: [PATCH] More specific filter More specific filter for is_index function. --- system/includes/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/includes/functions.php b/system/includes/functions.php index 273946b..38f02cf 100644 --- a/system/includes/functions.php +++ b/system/includes/functions.php @@ -1383,7 +1383,7 @@ function is_front() { // TRUE if the current page is an index page like frontpage, tag index, archive index and search index. function is_index() { $req = $_SERVER['REQUEST_URI']; - if(strpos($req, 'archive') !== false || strpos($req, 'tag') !== false || strpos($req, 'search') !== false){ + if(strpos($req, '/archive/') !== false || strpos($req, '/tag/') !== false || strpos($req, '/search/') !== false){ return true; } elseif($req == site_path() . '/') {