diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-02-24 20:07:49 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-02-24 20:07:49 +0000 |
commit | 86f3fc008338d3fc88d07c5a141226eddcdf3db0 (patch) | |
tree | 1778e8caf4a2f0cb59b42accac7ffb31800fa138 /usr/local/www/pkg_edit.php | |
parent | 179c1422757d62f07ec946477b03822e7ad221d0 (diff) | |
download | pfsense-86f3fc008338d3fc88d07c5a141226eddcdf3db0.zip pfsense-86f3fc008338d3fc88d07c5a141226eddcdf3db0.tar.gz |
Run custom_php_command_before_form commands before
custom_php_resync_config_command if they exist
Diffstat (limited to 'usr/local/www/pkg_edit.php')
-rwxr-xr-x | usr/local/www/pkg_edit.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr/local/www/pkg_edit.php b/usr/local/www/pkg_edit.php index 4e900c8..b3b157f 100755 --- a/usr/local/www/pkg_edit.php +++ b/usr/local/www/pkg_edit.php @@ -94,7 +94,9 @@ if ($_POST) { write_config(); // resync the configuration file code if defined. if($pkg['custom_php_resync_config_command'] <> "") { - eval($pkg['custom_php_resync_config_command']); + if($pkg['custom_php_command_before_form'] <> "") + eval($pkg['custom_php_command_before_form']); + eval($pkg['custom_php_resync_config_command']); } } else { if($pkg['custom_add_php_command']) { |