From 441f20ac6b42a3556007df6f4f4127cc735da190 Mon Sep 17 00:00:00 2001 From: Martin Fuchs Date: Tue, 27 Mar 2012 22:27:33 +0200 Subject: fix error pages default language --- config/squid-reverse/squid.inc | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'config') diff --git a/config/squid-reverse/squid.inc b/config/squid-reverse/squid.inc index f9cca8a0..df171137 100644 --- a/config/squid-reverse/squid.inc +++ b/config/squid-reverse/squid.inc @@ -271,10 +271,12 @@ function squid_deinstall_command() { } function squid_before_form_general($pkg) { - $values_raw = get_dir(SQUID_CONFBASE . '/errors/'); - // Get rid of '..' and '.' and ... - $values = array_diff ($values_raw, array('.','..','COPYRIGHT','TRANSLATORS')); - sort($values); + $values = get_dir(SQUID_CONFBASE . '/errors/'); + // Get rid of '..' and '.' + array_shift($values); + array_shift($values); + array_shift($values); + array_shift($values); $name = array(); foreach ($values as $value) -- cgit v1.2.3