summaryrefslogtreecommitdiffstats
path: root/usr/local/www/pkg_edit.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-02-24 20:07:49 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-02-24 20:07:49 +0000
commit86f3fc008338d3fc88d07c5a141226eddcdf3db0 (patch)
tree1778e8caf4a2f0cb59b42accac7ffb31800fa138 /usr/local/www/pkg_edit.php
parent179c1422757d62f07ec946477b03822e7ad221d0 (diff)
downloadpfsense-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-xusr/local/www/pkg_edit.php4
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']) {
OpenPOWER on IntegriCloud