Skip to content

Commit

Permalink
MDL-13302 gradebook data deleted now in remove_course_contents() - it…
Browse files Browse the repository at this point in the history
… makes better sense to have it there
  • Loading branch information
skodak committed Feb 18, 2008
1 parent acb05e1 commit ff90e9b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/moodlelib.php
Original file line number Diff line number Diff line change
Expand Up @@ -3370,7 +3370,6 @@ function set_login_session_preferences() {
*/
function delete_course($courseid, $showfeedback = true) {
global $CFG;
require_once($CFG->libdir.'/gradelib.php');
$result = true;

// frontpage course can not be deleted!!
Expand Down Expand Up @@ -3424,7 +3423,8 @@ function delete_course($courseid, $showfeedback = true) {
function remove_course_contents($courseid, $showfeedback=true) {

global $CFG;
include_once($CFG->libdir.'/questionlib.php');
require_once($CFG->libdir.'/questionlib.php');
require_once($CFG->libdir.'/gradelib.php');

$result = true;

Expand Down

0 comments on commit ff90e9b

Please sign in to comment.