Revision 3fe73243
Added by Pi Ba over 11 years ago
etc/inc/pfsense-utils.inc | ||
---|---|---|
2885 | 2885 |
continue; |
2886 | 2886 |
$pkg_config = parse_xml_config_pkg("/usr/local/pkg/" . $package['configurationfile'], 'packagegui'); |
2887 | 2887 |
$pkgname = substr(reverse_strrchr($package['configurationfile'], "."),0,-1); |
2888 |
if (is_array($pkg_config['plugins'])) |
|
2889 |
foreach ($pkg_config['plugins'] as $plugin) { |
|
2888 |
if (is_array($pkg_config['plugins']['item']))
|
|
2889 |
foreach ($pkg_config['plugins']['item'] as $plugin) {
|
|
2890 | 2890 |
if ($plugin['type'] == $plugin_type) { |
2891 | 2891 |
if (file_exists($pkg_config['include_file'])) |
2892 | 2892 |
require_once($pkg_config['include_file']); |
Also available in: Unified diff
fix plugin method for packages to allow for multiple plugins in an 'item' array as 'plugin' is not allowed as array item by xmlparse.inc