summaryrefslogtreecommitdiffstats
path: root/etc/inc/config.inc
diff options
context:
space:
mode:
authorErmal LUÇI <eri@pfsense.org>2014-11-25 15:32:05 +0100
committerErmal LUÇI <eri@pfsense.org>2014-11-25 15:32:05 +0100
commita8e430147463e0acb6e8b09a02eda96eff431aeb (patch)
treecf5452366250e74ffd3d59b20ff8cde2d7a1d1f8 /etc/inc/config.inc
parent1ad2dc5b74a6039cbe6b04f0b078977e1ae60484 (diff)
downloadpfsense-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/config.inc')
-rw-r--r--etc/inc/config.inc4
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;
}
OpenPOWER on IntegriCloud