From: Mike G. v. a. <we...@ma...> - 2008-05-24 02:50:12
|
Log Message: ----------- removed code that tried to import all grades from webwork on upgrades the moodle -- webwork link might not be made in which case this operation would fail Modified Files: -------------- wwmoodle/wwassignment4/moodle/mod/wwassignment/db: upgrade.php Revision Data ------------- Index: upgrade.php =================================================================== RCS file: /webwork/cvs/system/wwmoodle/wwassignment4/moodle/mod/wwassignment/db/upgrade.php,v retrieving revision 1.2 retrieving revision 1.3 diff -Lwwassignment4/moodle/mod/wwassignment/db/upgrade.php -Lwwassignment4/moodle/mod/wwassignment/db/upgrade.php -u -r1.2 -r1.3 --- wwassignment4/moodle/mod/wwassignment/db/upgrade.php +++ wwassignment4/moodle/mod/wwassignment/db/upgrade.php @@ -52,13 +52,16 @@ /// Launch add field timemodified $result = $result && add_field($table, $field); - notify('Processing assignment grades, this may take a while if there are many assignments...', 'notifysuccess'); + // can't do this until you are connected to webwork -- which you won't be on initial upgrades + // add this either to wwlink block or to configuration + + //notify('Processing assignment grades, this may take a while if there are many assignments...', 'notifysuccess'); // change grade typo to text if no grades MDL-13920 - require_once $CFG->dirroot.'/mod/wwassignment/lib.php'; + //require_once $CFG->dirroot.'/mod/wwassignment/lib.php'; // too much debug output - $db->debug = false; - wwassignment_update_grades(); - $db->debug = true; + //$db->debug = false; + //wwassignment_update_grades(); + //$db->debug = true; } return $result; |