From: stronk7 Date: Wed, 29 Aug 2007 14:50:41 +0000 (+0000) Subject: And we don't need to call assignment_upgrade_submodules() X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=8d7fb1bacd9dd881315b9655b1448e81f6246645;p=moodle.git And we don't need to call assignment_upgrade_submodules() from the update scripts any more. The standard plugin architecture for modules support that. MDL-11029 --- diff --git a/mod/assignment/db/mysql.php b/mod/assignment/db/mysql.php index 3cd8d5eae0..632e6574ad 100644 --- a/mod/assignment/db/mysql.php +++ b/mod/assignment/db/mysql.php @@ -168,11 +168,6 @@ function assignment_upgrade($oldversion) { table_column('assignment_submissions', 'comment', 'submissioncomment', 'text', '', '', ''); } - -/// These lines ALWAYS need to be here at the end of this file. Don't mess with them. :-) - include_once("$CFG->dirroot/mod/assignment/lib.php"); - assignment_upgrade_submodules(); - ////// DO NOT ADD NEW THINGS HERE!! USE upgrade.php and the lib/ddllib.php functions. return true; diff --git a/mod/assignment/db/postgres7.php b/mod/assignment/db/postgres7.php index e16e9068a5..f00034372b 100644 --- a/mod/assignment/db/postgres7.php +++ b/mod/assignment/db/postgres7.php @@ -174,11 +174,7 @@ function assignment_upgrade($oldversion) { if ($oldversion < 2006092100) { table_column('assignment_submissions', 'comment', 'submissioncomment', 'text', '', '', ''); - } - -/// These lines ALWAYS need to be here at the end of this file. Don't mess with them. :-) - include_once("$CFG->dirroot/mod/assignment/lib.php"); - assignment_upgrade_submodules(); + } ////// DO NOT ADD NEW THINGS HERE!! USE upgrade.php and the lib/ddllib.php functions.