MDL-32862 backup: fixed missing global

This commit is contained in:
Sam Hemelryk 2013-09-10 10:40:11 +12:00
parent 68d3e7682a
commit 8242ca0c34

View 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,"/");