Skip to content

Commit

Permalink
Merge branch 'MDL-41125-master' of git://github.com/FMCorz/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
danpoltawski committed Aug 20, 2013
2 parents d5f8b7e + 5297336 commit 43964b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions course/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@

require_once($CFG->libdir.'/completionlib.php');
require_once($CFG->libdir.'/filelib.php');
require_once($CFG->dirroot.'/course/dnduploadlib.php');
require_once($CFG->dirroot.'/course/format/lib.php');

define('COURSE_MAX_LOGS_PER_PAGE', 1000); // records
Expand Down Expand Up @@ -2925,7 +2924,7 @@ function course_ajax_enabled($course) {
* @return bool
*/
function include_course_ajax($course, $usedmodules = array(), $enabledmodules = null, $config = null) {
global $PAGE, $SITE;
global $CFG, $PAGE, $SITE;

// Ensure that ajax should be included
if (!course_ajax_enabled($course)) {
Expand Down Expand Up @@ -3023,6 +3022,7 @@ function include_course_ajax($course, $usedmodules = array(), $enabledmodules =
}

// Load drag and drop upload AJAX.
require_once($CFG->dirroot.'/course/dnduploadlib.php');
dndupload_add_to_course($course, $enabledmodules);

return true;
Expand Down

0 comments on commit 43964b8

Please sign in to comment.