diff options
author | Ermal LUÇI <eri@pfsense.org> | 2014-11-25 15:32:05 +0100 |
---|---|---|
committer | Ermal LUÇI <eri@pfsense.org> | 2014-11-25 15:32:05 +0100 |
commit | a8e430147463e0acb6e8b09a02eda96eff431aeb (patch) | |
tree | cf5452366250e74ffd3d59b20ff8cde2d7a1d1f8 /etc/inc | |
parent | 1ad2dc5b74a6039cbe6b04f0b078977e1ae60484 (diff) | |
download | pfsense-a8e430147463e0acb6e8b09a02eda96eff431aeb.zip pfsense-a8e430147463e0acb6e8b09a02eda96eff431aeb.tar.gz |
Actually to not change all scripts running both versions of console and gui just detect that the caller is through fpm-cgi and make it include config.gui.inc to avoid having issues in general from being called from wrong places.
Diffstat (limited to 'etc/inc')
-rw-r--r-- | etc/inc/config.inc | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/etc/inc/config.inc b/etc/inc/config.inc index f9f3a78..91757bf 100644 --- a/etc/inc/config.inc +++ b/etc/inc/config.inc @@ -43,9 +43,7 @@ */ if (php_sapi_name() == 'fpm-fcgi') { - if (!function_exists('log_error')) - require_once("/etc/inc/util.inc"); - log_error("config.inc is called from GUI interface which is wrong, please report this!"); + require_once("config.gui.inc"); return; } |