From: Michael M Slusarz Date: Tue, 6 Jan 2009 19:03:11 +0000 (-0700) Subject: Fix stats page determination. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=bb5fdfec0bed86643f03c855f0e45df626847ffb;p=horde.git Fix stats page determination. --- diff --git a/chora/lib/Chora.php b/chora/lib/Chora.php index e17915017..c7d0e8e16 100644 --- a/chora/lib/Chora.php +++ b/chora/lib/Chora.php @@ -523,7 +523,8 @@ class Chora { } } - $views[] = $current == 'stats' + /* Can't use $current - gives us PATH_INFO information. */ + $views[] = (strpos($_SERVER['PHP_SELF'], '/stats.php/') !== false) ? '' . _("Statistics") . '' : Horde::widget(Chora::url('stats', $where), _("Statistics"), 'widget', '', '', _("_Statistics"));