vcl-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jftho...@apache.org
Subject svn commit: r1785019 - /vcl/trunk/web/themes/dropdownmenus/page.php
Date Wed, 01 Mar 2017 19:00:42 GMT
Author: jfthomps
Date: Wed Mar  1 19:00:42 2017
New Revision: 1785019

URL: http://svn.apache.org/viewvc?rev=1785019&view=rev
Log:
VCL-981 - create a new theme that is more responsive for mobile devices

added check for $menu[$item] being set in section that generates drop down for Reporting because
not all users see the dashboard and user lookup links

Modified:
    vcl/trunk/web/themes/dropdownmenus/page.php

Modified: vcl/trunk/web/themes/dropdownmenus/page.php
URL: http://svn.apache.org/viewvc/vcl/trunk/web/themes/dropdownmenus/page.php?rev=1785019&r1=1785018&r2=1785019&view=diff
==============================================================================
--- vcl/trunk/web/themes/dropdownmenus/page.php (original)
+++ vcl/trunk/web/themes/dropdownmenus/page.php Wed Mar  1 19:00:42 2017
@@ -130,6 +130,8 @@ function getHeader($refresh) {
 		$rt .= "                <ul class=\"dropdown-menu\">\n";
 		$items = array('dashboard', 'statistics', 'userLookup');
 		foreach($items as $item) {
+			if(! isset($menu[$item]))
+				continue;
 			$selected = '';
 			if($menu[$item]['selected'])
 				$selected = ' class="active"';



Mime
View raw message