From: skodak Date: Wed, 4 Jun 2008 23:56:34 +0000 (+0000) Subject: MDL-15094 fixed regressions X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=8f15f8ec2d484c8796ff213075c5c44db37a4384;p=moodle.git MDL-15094 fixed regressions --- diff --git a/backup/backup_form.html b/backup/backup_form.html index 46b0d93e8b..17bc085567 100644 --- a/backup/backup_form.html +++ b/backup/backup_form.html @@ -29,7 +29,7 @@ //Checks for the required files/functions to backup every mod //And check if there is data about it $count = 0; - if ($allmods = $DB_>get_records('modules', array('visible'=>1)) ) { + if ($allmods = $DB->get_records('modules', array('visible'=>1)) ) { foreach ($allmods as $mod) { $modname = $mod->name; $modfile = "$CFG->dirroot/mod/$modname/backuplib.php"; diff --git a/course/user.php b/course/user.php index 5519ce87ec..56ffa6703d 100644 --- a/course/user.php +++ b/course/user.php @@ -113,7 +113,7 @@ } $earliestday = $DB->get_field_sql('SELECT timeend FROM {stats_user_daily} ORDER BY timeend'); - $earliestweek = $DB_>get_field_sql('SELECT timeend FROM {stats_user_weekly} ORDER BY timeend'); + $earliestweek = $DB->get_field_sql('SELECT timeend FROM {stats_user_weekly} ORDER BY timeend'); $earliestmonth = $DB->get_field_sql('SELECT timeend FROM {stats_user_monthly} ORDER BY timeend'); if (empty($earliestday)) $earliestday = time(); diff --git a/mod/wiki/backuplib.php b/mod/wiki/backuplib.php index 9de6d0661d..80ea626527 100644 --- a/mod/wiki/backuplib.php +++ b/mod/wiki/backuplib.php @@ -144,7 +144,7 @@ $status = true; - $pages = $DB_>get_records("wiki_pages", array("wiki"=>$entryid)); + $pages = $DB->get_records("wiki_pages", array("wiki"=>$entryid)); if ($pages) { //Start tag $status =fwrite ($bf,start_tag("PAGES",6,true));