diff options
author | Bill Marquette <billm@pfsense.org> | 2005-03-20 15:29:07 +0000 |
---|---|---|
committer | Bill Marquette <billm@pfsense.org> | 2005-03-20 15:29:07 +0000 |
commit | 529ffadbe795028a50dad44ca315e19b10e375d7 (patch) | |
tree | ef91347079cf804a8b88a6dfd1f5c40389a413bf /usr/local/www | |
parent | c0b8f2ab211e7404dd95bc3c402b8fdd6cb176f1 (diff) | |
download | pfsense-529ffadbe795028a50dad44ca315e19b10e375d7.zip pfsense-529ffadbe795028a50dad44ca315e19b10e375d7.tar.gz |
Gotta load the global functions before the rest of them :)
Diffstat (limited to 'usr/local/www')
-rwxr-xr-x | usr/local/www/pkg_edit.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr/local/www/pkg_edit.php b/usr/local/www/pkg_edit.php index 70d77fb..68ad5d5 100755 --- a/usr/local/www/pkg_edit.php +++ b/usr/local/www/pkg_edit.php @@ -72,6 +72,9 @@ $id = $_GET['id']; if (isset($_POST['id'])) $id = $_POST['id']; +if($pkg['custom_php_global_functions'] <> "") + eval($pkg['custom_php_global_functions']); + // grab the installedpackages->package_name section. $toeval = "\$a_pkg = &\$config['installedpackages']['" . $name . "']['config'];"; eval($toeval); @@ -82,8 +85,6 @@ eval($toeval); $toeval = "\$a_pkg = &\$config['installedpackages']['" . xml_safe_fieldname($pkg['name']) . "']['config'];"; eval($toeval); -if($pkg['custom_php_global_functions'] <> "") - eval($pkg['custom_php_global_functions']); if($pkg['custom_php_command_before_form'] <> "") eval($pkg['custom_php_command_before_form']); |