X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=gosa-core%2Fhtml%2Fsetup.php;h=e4be820b13353faaa4034969c3d5317e1f5c3a7e;hb=076e60f63453b863fe5abbe527d5dc8010fb5a23;hp=5bf7f92ebdae6d11b1a5e24b9810b46480a6db6b;hpb=d7245ad424f386899c9cc9e3ba6e65e099676122;p=gosa.git diff --git a/gosa-core/html/setup.php b/gosa-core/html/setup.php index 5bf7f92eb..e4be820b1 100644 --- a/gosa-core/html/setup.php +++ b/gosa-core/html/setup.php @@ -1,25 +1,24 @@ '; - echo ' location = "setup.php?js=true";'; - echo ''; - - session::set('js',FALSE); -} elseif(isset($_GET['js'])) { - session::set('js',TRUE); -} +session::set('errorsAlreadyPosted',array()); /* Attribute initialization, reset errors */ session::set('errors',""); @@ -91,6 +80,18 @@ if(isset($_POST['lang_selected'])){ } } +/* Check for js */ +if (!isset($_GET['js']) && !session::is_set('js')){ + echo ''; + + session::set('js',FALSE); +} elseif(isset($_GET['js'])) { + session::set('js',TRUE); +} + + $lang = session::get('lang'); /* Append .UTF-8 to language string if necessary */ if(!preg_match("/utf(-)8$/i",$lang)){ @@ -104,7 +105,7 @@ $GLOBALS['t_gettext_message_dir'] = $BASE_DIR.'/locale/'; /* Set the text domain as 'messages' */ $domain = 'messages'; -bindtextdomain($domain, "$BASE_DIR/locale"); +bindtextdomain($domain, LOCALE_DIR); textdomain($domain);