aboutsummaryrefslogtreecommitdiffstats
path: root/config/squid3
diff options
context:
space:
mode:
authordoktornotor <notordoktor@gmail.com>2015-09-25 18:14:22 +0200
committerdoktornotor <notordoktor@gmail.com>2015-09-25 18:14:22 +0200
commit1bb22453b33423265b2af2056159179c1cefea67 (patch)
treee1ee58659508dc91456d2bb936d00f31bb0e0482 /config/squid3
parentfdcd38d1f8f11dee07b6533465ba681c836268de (diff)
downloadpfsense-packages-1bb22453b33423265b2af2056159179c1cefea67.tar.gz
pfsense-packages-1bb22453b33423265b2af2056159179c1cefea67.tar.bz2
pfsense-packages-1bb22453b33423265b2af2056159179c1cefea67.zip
Remove broken squid_before_form_general() function
Diffstat (limited to 'config/squid3')
-rwxr-xr-xconfig/squid3/34/squid.inc36
1 files changed, 0 insertions, 36 deletions
diff --git a/config/squid3/34/squid.inc b/config/squid3/34/squid.inc
index 470c15c3..7a8dba09 100755
--- a/config/squid3/34/squid.inc
+++ b/config/squid3/34/squid.inc
@@ -398,42 +398,6 @@ function squid_deinstall_command() {
filter_configure();
}
-function squid_before_form_general(&$pkg) {
- $values = get_dir(SQUID_CONFBASE . '/errors/');
- /*
- * XXX: This logic is broken. Probably the idea in the past
- * was to skip '.', '..'. 'COPYRIGHT' and 'TRANSLATORS' and
- * errors subdirectories used to be more meaning, like 'English'
- * or Brazillian_Portuguese.
- *
- * Nowadays they are 'en', 'pt-br', ... and also there is a
- * 'templates' directory to be skipped
- */
- // Get rid of '..' and '.' and ...
- array_shift($values);
- array_shift($values);
- array_shift($values);
- array_shift($values);
-
- $name = array();
- foreach ($values as $value) {
- $names[] = implode(" ", explode("_", $value));
- }
-
- $i = 0;
- foreach ($pkg['fields']['field'] as $field) {
- if ($field['fieldname'] == 'error_language') {
- break;
- }
- $i++;
- }
- $field = &$pkg['fields']['field'][$i];
-
- for ($i = 0; $i < count($values) - 1; $i++) {
- $field['options']['option'][] = array('name' => $names[$i], 'value' => $values[$i]);
- }
-}
-
function squid_validate_antivirus($post, &$input_errors) {
global $config;