MDL-32862 backup: fixed missing global
authorSam Hemelryk <sam@moodle.com>
Mon, 9 Sep 2013 22:40:11 +0000 (10:40 +1200)
committerSam Hemelryk <sam@moodle.com>
Mon, 9 Sep 2013 22:57:20 +0000 (10:57 +1200)
mod/resource/backup/moodle2/backup_resource_activity_task.class.php

index eec0fb8..8419201 100644 (file)
@@ -58,7 +58,7 @@ class backup_resource_activity_task extends backup_activity_task {
      * @return string the content with the URLs encoded
      */
     static public function encode_content_links($content) {
-        global $CFG;
+        global $CFG, $DB;
 
         $base = preg_quote($CFG->wwwroot,"/");