mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 00:12:56 +02:00
MDL-32862 backup: fixed missing global
This commit is contained in:
parent
68d3e7682a
commit
8242ca0c34
@ -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,"/");
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user