if ($COURSE->id == $this->instance->pageid) {
$course = $COURSE;
} else {
- $course = get_record('course', array('id'=>$this->instance->pageid));
+ $course = $DB->get_record('course', array('id'=>$this->instance->pageid));
}
require_once($CFG->dirroot.'/course/lib.php');
GROUP BY t.id, t.tagtype, t.name, t.rawname
ORDER BY ct DESC, t.name ASC";
- if ($tags = get_records_sql($sql, null, 0, $this->config->numberoftags)) {
+ if ($tags = $DB->get_records_sql($sql, null, 0, $this->config->numberoftags)) {
/// There are 2 things to do:
/// 1. tags with the same count should have the same size class
global $DB;
parent::instance_config($instance);
- $course = get_record('course', array('id'=>$this->instance->pageid));
+ $course = $DB->get_record('course', array('id'=>$this->instance->pageid));
if (isset($course->format)) {
if ($course->format == 'topics') {
$this->title = get_string('topics', 'block_section_links');
if ($COURSE->id == $this->instance->pageid) {
$course = $COURSE;
} else {
- $course = get_record('course', array('id'=>$this->instance->pageid));
+ $course = $DB->get_record('course', array('id'=>$this->instance->pageid));
}
require_once($CFG->dirroot.'/course/lib.php');
if ($COURSE->id == $this->instance->pageid) {
$course = $COURSE;
} else {
- $course = get_record('course', array('id'=>$this->instance->pageid));
+ $course = $DB->get_record('course', array('id'=>$this->instance->pageid));
}
require_once($CFG->dirroot.'/course/lib.php');