diff options
-rw-r--r-- | install.php | 6 | ||||
-rw-r--r-- | lib/class/access.class.php | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/install.php b/install.php index 77a91b1a..1d69a849 100644 --- a/install.php +++ b/install.php @@ -27,6 +27,8 @@ require_once 'lib/class/config.class.php'; require_once 'lib/class/error.class.php'; require_once 'lib/class/vauth.class.php'; require_once 'lib/class/database_object.abstract.php'; +require_once 'lib/class/preference.class.php'; +require_once 'lib/class/access.class.php'; require_once 'lib/ui.lib.php'; require_once 'lib/log.lib.php'; require_once 'modules/horde/Browser.php'; @@ -83,6 +85,9 @@ switch ($_REQUEST['action']) { require_once 'templates/show_install.inc.php'; break; } + + // Now that it's inserted save the lang preference + Preference::update('lang','-1',$htmllang); header ("Location: " . WEB_PATH . "?action=show_create_config&local_db=$database&local_host=$hostname&htmllang=$htmllang&charset=$charset"); @@ -219,6 +224,7 @@ switch ($_REQUEST['action']) { // We need the charset for the different languages $charsets = array('de_DE' => 'ISO-8859-15', 'en_US' => 'iso-8859-1', + 'cs_CZ' => 'UTF-8', 'ja_JP' => 'UTF-8', 'en_GB' => 'UTF-8', 'es_ES' => 'iso-8859-1', diff --git a/lib/class/access.class.php b/lib/class/access.class.php index 1a256fae..fc2a5de0 100644 --- a/lib/class/access.class.php +++ b/lib/class/access.class.php @@ -321,6 +321,7 @@ class Access { public static function check($type,$level) { if (Config::get('demo_mode')) { return true; } + if (INSTALL == '1') { return true; } $level = intval($level); |