diff options
-rwxr-xr-x | usr/local/www/fbegin.inc | 2 | ||||
-rw-r--r-- | usr/local/www/shortcuts.inc | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/usr/local/www/fbegin.inc b/usr/local/www/fbegin.inc index 6766dd6..bb11869 100755 --- a/usr/local/www/fbegin.inc +++ b/usr/local/www/fbegin.inc @@ -386,7 +386,7 @@ function add_to_menu($url, $name) { ?> <div> -<span class="pgtitle"><a href="<?= $_SERVER['SCRIPT_NAME'] ?>"><?=genhtmltitle($pgtitle);?></a></span> +<span class="pgtitle"><a href="<?= $_SERVER['REQUEST_URI'] ?>"><?=genhtmltitle($pgtitle);?></a></span> <span style="float:right; margin: 0 0 20px 20px"> <?php if (!$hide_service_status && !empty($shortcuts[$shortcut_section]['service'])) { 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>"; } |