]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-14679 fixed regressions
authorskodak <skodak>
Sat, 31 May 2008 18:20:05 +0000 (18:20 +0000)
committerskodak <skodak>
Sat, 31 May 2008 18:20:05 +0000 (18:20 +0000)
blocks/activity_modules/block_activity_modules.php
blocks/blog_tags/block_blog_tags.php
blocks/section_links/block_section_links.php
blocks/site_main_menu/block_site_main_menu.php
blocks/social_activities/block_social_activities.php

index 01b3278c1cdd5cf616920bfa7936b3a0b99505cb..f3efc68eddc47e00546fb59bdd9c1a36ed14d28f 100644 (file)
@@ -21,7 +21,7 @@ class block_activity_modules extends block_list {
         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');
index 9aa1e4a4939642d2da1bcca352f4952fe904d50a..5cbb6f69c773e0caba337b646a41fabdd7f800b5 100644 (file)
@@ -86,7 +86,7 @@ class block_blog_tags extends block_base {
                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
index 76f51d6aee3c3210edb3751ff71a190c3b245685..c41b93d35a00c99ce31d7610a57c1ed1f3c1ff57 100644 (file)
@@ -11,7 +11,7 @@ class block_section_links extends block_base {
         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');
index 4940ec6129b5d6b8f85dfc676303c4f9f3276b72..ccf8e06921b856ac88efffca72f202c1e191701f 100644 (file)
@@ -29,7 +29,7 @@ class block_site_main_menu extends block_list {
         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');
index 2dd7f8c0ce8ae27d6063ea5d3616f25886efb369..75058ca7c63e44b0b80333fcd675e879365befac 100644 (file)
@@ -29,7 +29,7 @@ class block_social_activities extends block_list {
         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');