From 6da09613586f0974ca741337cad236ea842ad88c Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 30 Sep 2018 17:37:36 +0200 Subject: [PATCH] kill this hitler-hook. fixes #264 --- htdocs/application/hooks/pick_language.php | 87 ---------------------- 1 file changed, 87 deletions(-) delete mode 100644 htdocs/application/hooks/pick_language.php diff --git a/htdocs/application/hooks/pick_language.php b/htdocs/application/hooks/pick_language.php deleted file mode 100644 index 399f827..0000000 --- a/htdocs/application/hooks/pick_language.php +++ /dev/null @@ -1,87 +0,0 @@ - $l) - { - - if ($al == $l['codes'][2]) - { - $lang = $i; - break; - } - } - } - } - - // If no language has been worked out - or it is not supported - use the default - - if (empty($lang) OR !array_key_exists($lang, $config['supported_languages'])) - { - $lang = $config['language']; - } - - // Whatever we decided the lang was, save it for next time to avoid working it out again - $_SESSION['lang_code'] = $lang; - - // Load CI config class - $CI_config = & load_class('Config'); - - // Set the language config. Selects the folder name from its key of 'en' - $CI_config->set_item('language', $config['supported_languages'][$lang]['folder']); - - // Sets a constant to use throughout ALL of CI. - define('AUTO_LANGUAGE', $lang); -}