This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "FusionForge".

The branch, master has been updated
       via  c55669d9cb8af0de4e9ffe46d8c86189f67cd902 (commit)
      from  8cd2bf0d50d4a325ca8034fe5f87259fea295d1f (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
https://scm.fusionforge.org/anonscm/gitweb/?p=fusionforge/fusionforge.git;a=commitdiff;h=c55669d9cb8af0de4e9ffe46d8c86189f67cd902

commit c55669d9cb8af0de4e9ffe46d8c86189f67cd902
Author: Franck Villaume <[email protected]>
Date:   Mon May 6 16:39:16 2019 +0200

    really fix the selected tab for admin user

diff --git a/src/common/include/Navigation.class.php 
b/src/common/include/Navigation.class.php
index b5d1e8b..6e1636e 100644
--- a/src/common/include/Navigation.class.php
+++ b/src/common/include/Navigation.class.php
@@ -300,7 +300,7 @@ class Navigation extends FFError {
                        $menu['titles'][] = _('Site Admin');
                        $menu['urls'][] = util_make_uri('/admin/');
                        $menu['tooltips'][] = _('Administration Submenu to 
handle global configuration, users & projects.');
-                       if (strstr($request_uri, 
forge_get_config('url_prefix').'/admin/') || strstr($request_uri, 
'type=globaladmin')) {
+                       if ((strpos($request_uri, '/admin/') === 0) || 
strstr($request_uri, 'type=globaladmin')) {
                                $selected = count($menu['urls'])-1;
                        }
                }

-----------------------------------------------------------------------

Summary of changes:
 src/common/include/Navigation.class.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


hooks/post-receive
-- 
FusionForge

_______________________________________________
Fusionforge-commits mailing list
[email protected]
http://lists.fusionforge.org/cgi-bin/mailman/listinfo/fusionforge-commits

Reply via email to