aboutsummaryrefslogtreecommitdiffstats
path: root/include/filter.inc.php
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--include/filter.inc.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/filter.inc.php b/include/filter.inc.php
index cca046050..f5ea3cd4f 100644
--- a/include/filter.inc.php
+++ b/include/filter.inc.php
@@ -34,13 +34,13 @@ $filter = array();
$filter['enabled'] =
- (in_array(basename($_SERVER['SCRIPT_FILENAME']), $conf['filter_pages'])) and
+ (in_array(script_basename(), $conf['filter_pages'])) and
(
(isset($_GET['filter']) and ($_GET['filter'] == 'start')) or
pwg_get_session_var('filter_enabled', false)
);
-if (in_array(basename($_SERVER['SCRIPT_FILENAME']), $conf['filter_pages']))
+if (in_array(script_basename(), $conf['filter_pages']))
{
if (isset($_GET['filter']))
{