diff options
author | PiBa-NL <pba_2k3@yahoo.com> | 2014-03-13 21:58:26 +0100 |
---|---|---|
committer | PiBa-NL <pba_2k3@yahoo.com> | 2014-03-13 21:58:26 +0100 |
commit | 3fe73243bfb3eb4752a0fb9636f57a4dc645bf82 (patch) | |
tree | cc9a6de1f9e3564da6125f5f50039deb47b0f1d0 /etc | |
parent | 4db99d5baf388c23006aff6b9546d9ae90f6d787 (diff) | |
download | pfsense-3fe73243bfb3eb4752a0fb9636f57a4dc645bf82.zip pfsense-3fe73243bfb3eb4752a0fb9636f57a4dc645bf82.tar.gz |
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
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/pfsense-utils.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc index c195a14..a70faf2 100644 --- a/etc/inc/pfsense-utils.inc +++ b/etc/inc/pfsense-utils.inc @@ -2885,8 +2885,8 @@ function pkg_call_plugins($plugin_type, $plugin_params) { continue; $pkg_config = parse_xml_config_pkg("/usr/local/pkg/" . $package['configurationfile'], 'packagegui'); $pkgname = substr(reverse_strrchr($package['configurationfile'], "."),0,-1); - if (is_array($pkg_config['plugins'])) - foreach ($pkg_config['plugins'] as $plugin) { + if (is_array($pkg_config['plugins']['item'])) + foreach ($pkg_config['plugins']['item'] as $plugin) { if ($plugin['type'] == $plugin_type) { if (file_exists($pkg_config['include_file'])) require_once($pkg_config['include_file']); |