mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 00:12:56 +02:00
MDL-15094 fixed regressions
This commit is contained in:
parent
0208b97cb6
commit
8f15f8ec2d
@ -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";
|
||||
|
@ -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();
|
||||
|
@ -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));
|
||||
|
Loading…
x
Reference in New Issue
Block a user