Fix stats.php self determination
authorMichael M Slusarz <slusarz@curecanti.org>
Wed, 21 Jan 2009 22:57:41 +0000 (15:57 -0700)
committerMichael M Slusarz <slusarz@curecanti.org>
Wed, 21 Jan 2009 22:57:41 +0000 (15:57 -0700)
chora/lib/Chora.php

index 47c5838..3a3356e 100644 (file)
@@ -528,7 +528,7 @@ class Chora
         }
 
         /* Can't use $current - gives us PATH_INFO information. */
-        $views[] = (strpos($_SERVER['PHP_SELF'], '/stats.php/') !== false)
+        $views[] = (strpos($_SERVER['PHP_SELF'], '/stats.php') !== false)
             ? '<em class="widget">' . _("Statistics") . '</em>'
             : Horde::widget(Chora::url('stats', $where), _("Statistics"),
                             'widget', '', '', _("_Statistics"));