Browse Source

More specific filter

More specific filter for is_index function.
pull/31/merge
Danang Probo Sayekti 11 years ago
parent
commit
78d3aed14f
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      system/includes/functions.php

+ 1
- 1
system/includes/functions.php View File

@ -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. // TRUE if the current page is an index page like frontpage, tag index, archive index and search index.
function is_index() { function is_index() {
$req = $_SERVER['REQUEST_URI']; $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; return true;
} }
elseif($req == site_path() . '/') { elseif($req == site_path() . '/') {


Loading…
Cancel
Save