diff options
author | Renato Botelho <renato@netgate.com> | 2017-03-29 08:22:09 -0300 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2017-03-29 08:22:09 -0300 |
commit | fe255e99389cb6f75a06c55797890c52bd934f0f (patch) | |
tree | bfaef3e379be44420660a78d256802feb8b26010 /src/usr/local | |
parent | edcc5e544095e213fd043269c20a4942aec8e058 (diff) | |
parent | bc0661b7b32a99016b9e71b0ece969f6584034c2 (diff) | |
download | pfsense-fe255e99389cb6f75a06c55797890c52bd934f0f.zip pfsense-fe255e99389cb6f75a06c55797890c52bd934f0f.tar.gz |
Merge pull request #3674 from PiBa-NL/20170326-pkg-tabs
Diffstat (limited to 'src/usr/local')
-rw-r--r-- | src/usr/local/www/guiconfig.inc | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/usr/local/www/guiconfig.inc b/src/usr/local/www/guiconfig.inc index 43321d9..fb0134f 100644 --- a/src/usr/local/www/guiconfig.inc +++ b/src/usr/local/www/guiconfig.inc @@ -1091,13 +1091,14 @@ function add_package_tabs($tabgroup, &$tab_array) { } foreach ($config['installedpackages']['package'] as $pkg) { - $pkg_config = read_package_configurationfile($pkg['name']); - - if (!isset($pkg_config['tabs']['tab'])) { + if (!is_array($pkg['tabs']['tab'])) { continue; } - foreach ($pkg_config['tabs']['tab'] as $tab) { + foreach ($pkg['tabs']['tab'] as $tab) { + if ($tab['tabgroup'] != $tabgroup) { + continue; + } $tab_entry = array(); if ($tab['name']) { $tab_entry[] = $tab['name']; |