Skip to content

Commit

Permalink
MDL-14679 fixed regressions
Browse files Browse the repository at this point in the history
  • Loading branch information
skodak committed May 31, 2008
1 parent 66cb53c commit 98891b9
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion blocks/activity_modules/block_activity_modules.php
Expand Up @@ -21,7 +21,7 @@ function get_content() {
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');
Expand Down
2 changes: 1 addition & 1 deletion blocks/blog_tags/block_blog_tags.php
Expand Up @@ -86,7 +86,7 @@ function get_content() {
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
Expand Down
2 changes: 1 addition & 1 deletion blocks/section_links/block_section_links.php
Expand Up @@ -11,7 +11,7 @@ function instance_config($instance) {
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');
Expand Down
2 changes: 1 addition & 1 deletion blocks/site_main_menu/block_site_main_menu.php
Expand Up @@ -29,7 +29,7 @@ function get_content() {
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');
Expand Down
2 changes: 1 addition & 1 deletion blocks/social_activities/block_social_activities.php
Expand Up @@ -29,7 +29,7 @@ function get_content() {
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');
Expand Down

0 comments on commit 98891b9

Please sign in to comment.