http://www.atutor.ca/atutor/mantis/view.php?id=3028
authorjoel kronenberg <joel.kronenberg@utoronto.ca>
Mon, 16 Apr 2007 17:45:50 +0000 (17:45 -0000)
committerjoel kronenberg <joel.kronenberg@utoronto.ca>
Mon, 16 Apr 2007 17:45:50 +0000 (17:45 -0000)
docs/install/include/ustep3.php

index 6f4c109..069910e 100644 (file)
@@ -134,6 +134,11 @@ if(isset($_POST['submit']) && ($_POST['action'] == 'process')) {
                $sql = "DELETE FROM ".$_POST['step1']['tb_prefix']."tests_groups";
                mysql_query($sql, $db);
        }
+       if (version_compare($_POST['step1']['old_version'], '1.5.3.3', '<')) {
+               // set display_name_format to "login"
+               $sql = "INSERT INTO ".$_POST['step1']['tb_prefix']."config VALUES ('display_name_format', '0')";
+               mysql_query($sql, $db);
+       }
 
        if (version_compare($_POST['step1']['old_version'], '1.5.4', '<')) {
                /* find all the multiple choice multiple answer questions and convert them to