Skip to content

Instantly share code, notes, and snippets.

@danpoltawski
Created April 18, 2012 02:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danpoltawski/2410790 to your computer and use it in GitHub Desktop.
Save danpoltawski/2410790 to your computer and use it in GitHub Desktop.
adding dndupload support to mod_subpage
diff --git a/view.php b/view.php
index b0cdac0..b6a1778 100644
--- a/view.php
+++ b/view.php
@@ -29,6 +29,7 @@ require_once('lib.php');
require_once($CFG->dirroot.'/course/lib.php');
require_once($CFG->dirroot.'/mod/forum/lib.php');
require_once($CFG->libdir.'/completionlib.php');
+require_once($CFG->libdir.'/dnduploadlib.php');
$cmid = optional_param('id', 0, PARAM_INT);
$edit = optional_param('edit', -1, PARAM_BOOL);
@@ -189,6 +190,7 @@ if (!empty($CFG->enablecourseajax)
$COURSE->javascriptportal = new jsportal();
$useajax = true;
}
+dndupload_add_to_course($COURSE);
// this will add a new class to the header so we can style differently
$CFG->blocksdrag = $useajax;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment