MDL-14679 ok, here is the big patch with new dmllib and ddlib API, some code is already converted, XML db editor works; see tracker for details of regressions and TODOs
This commit is contained in:
@@ -8,7 +8,7 @@ class block_admin extends block_list {
|
||||
|
||||
function get_content() {
|
||||
|
||||
global $CFG, $USER, $SITE, $COURSE;
|
||||
global $CFG, $USER, $SITE, $COURSE, $DB;
|
||||
|
||||
if ($this->content !== NULL) {
|
||||
return $this->content;
|
||||
@@ -30,7 +30,7 @@ class block_admin extends block_list {
|
||||
if ($COURSE->id == $this->instance->pageid) {
|
||||
$course = $COURSE;
|
||||
} else {
|
||||
$course = get_record('course', 'id', $this->instance->pageid);
|
||||
$course = $DB->get_record('course', array('id'=>$this->instance->pageid));
|
||||
}
|
||||
} else {
|
||||
$context = get_context_instance(CONTEXT_SYSTEM);
|
||||
|
||||
Reference in New Issue
Block a user