]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-17458 fixed lang selection in sessionless db installer
authorskodak <skodak>
Wed, 28 Jan 2009 06:44:41 +0000 (06:44 +0000)
committerskodak <skodak>
Wed, 28 Jan 2009 06:44:41 +0000 (06:44 +0000)
admin/index.php

index e3a486b12830985e468e1f018cd856cf14538d72..2ad600b5fa92c4d5b8ab1b5a3d71e4361d39e097 100644 (file)
             print_heading(get_string('copyrightnotice'));
             print_box(text_to_html(get_string('gpl')), 'copyrightnotice');
             echo "<br />";
-            notice_yesno(get_string('doyouagree'), "index.php?agreelicense=1",
+            notice_yesno(get_string('doyouagree'), "index.php?agreelicense=1&lang=$CFG->lang",
                                                    "http://docs.moodle.org/en/License");
             print_footer('none');
             exit;
             print_header($strcurrentrelease, $strcurrentrelease, $navigation, "", "", false, "&nbsp;", "&nbsp;");
             print_heading("Moodle $release");
             print_box(get_string('releasenoteslink', 'admin', 'http://docs.moodle.org/en/Release_Notes'), 'generalbox boxaligncenter boxwidthwide');
-            print_continue('index.php?agreelicense=1&amp;confirmrelease=1');
+            print_continue("index.php?agreelicense=1&amp;confirmrelease=1&lang=$CFG->lang");
             print_footer('none');
             die;
         }
         $sessionstarted = optional_param('sessionstarted', 0, PARAM_BOOL);
         if (!$sessionstarted) {
             // we neeed this redirect to setup proper session
-            upgrade_log_finish('index.php?sessionstarted=1');
+            upgrade_log_finish("index.php?sessionstarted=1&lang=$CFG->lang");
         }
         $adminuser = create_admin_user();
         $adminuser->newadminuser = 1;