Created
April 18, 2012 02:57
-
-
Save danpoltawski/2410790 to your computer and use it in GitHub Desktop.
adding dndupload support to mod_subpage
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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