From e8285743abff669e0b795c36e2a1c4fd05b4d403 Mon Sep 17 00:00:00 2001 From: marcelloc Date: Fri, 22 Jun 2012 18:54:47 -0300 Subject: squid3 - fixes array_check and error messages dir --- config/squid-reverse/squid.inc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'config') diff --git a/config/squid-reverse/squid.inc b/config/squid-reverse/squid.inc index e7dffcdb..a82cc9ba 100644 --- a/config/squid-reverse/squid.inc +++ b/config/squid-reverse/squid.inc @@ -746,7 +746,7 @@ function squid_resync_general() { $icp_port = ($settings['icp_port'] ? $settings['icp_port'] : 7); $pidfile = "{$g['varrun_path']}/squid.pid"; - $language = ($settings['error_language'] ? $settings['error_language'] : 'English'); + $language = ($settings['error_language'] ? $settings['error_language'] : 'en'); $errordir = SQUID_CONFBASE . '/errors/' . $language; $icondir = SQUID_CONFBASE . '/icons'; $hostname = ($settings['visible_hostname'] ? $settings['visible_hostname'] : 'localhost'); @@ -763,7 +763,7 @@ icp_port $icp_port pid_filename $pidfile cache_effective_user proxy cache_effective_group proxy -error_directory $errordir +error_default_language $errordir icon_directory $icondir visible_hostname $hostname cache_mgr $email @@ -1376,7 +1376,7 @@ function squid_resync() { if(file_exists("/usr/local/libexec/squid/pinger")) exec("chmod a+x /usr/local/libexec/squid/pinger"); - if (is_array($config['installedpackages']['squid']['config'][0])){ + if (is_array($config['installedpackages']['squid']['config'])){ $log_dir = $config['installedpackages']['squid']['config'][0]['log_dir'].'/'; if(!is_dir($log_dir)) { -- cgit v1.2.3