MDL-15094 fixed regressions

This commit is contained in:
skodak 2008-06-04 23:56:34 +00:00
parent 0208b97cb6
commit 8f15f8ec2d
3 changed files with 3 additions and 3 deletions

View File

@ -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";

View File

@ -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();

View File

@ -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));