summaryrefslogtreecommitdiffstats
path: root/usr/local/www/shortcuts.inc
diff options
context:
space:
mode:
Diffstat (limited to 'usr/local/www/shortcuts.inc')
-rw-r--r--usr/local/www/shortcuts.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/local/www/shortcuts.inc b/usr/local/www/shortcuts.inc
index ca42593..830b258 100644
--- a/usr/local/www/shortcuts.inc
+++ b/usr/local/www/shortcuts.inc
@@ -92,7 +92,7 @@ function get_shortcut_main_link($shortcut_section, $addspace = true, $service =
$link = $shortcuts[$shortcut_section]['main'];
break;
}
- if(!empty($link) && ($_SERVER['SCRIPT_NAME'] != "/{$link}"))
+ if(!empty($link) && ($_SERVER['REQUEST_URI'] != "/{$link}"))
return "{$space}<a href=\"{$link}\" title=\"" . gettext("Main page for this section") . "\"><img style=\"vertical-align:middle\" src=\"/themes/{$g['theme']}/images/icons/icon_plus.gif\" border=\"0\"></a>";
}
OpenPOWER on IntegriCloud