MDL-21657 Fixing incorrect usage of relative path in require_once() and tab indentation

This commit is contained in:
David Mudrak 2010-04-15 19:56:41 +00:00
parent 79312a06e4
commit 5e1bccd227
3 changed files with 4 additions and 4 deletions

View File

@ -256,8 +256,8 @@ function xmldb_data_upgrade($oldversion) {
if($result && $oldversion < 2010041300) {
//migrate data_ratings to the central rating table
require_once('../lib/db/upgradelib.php');
require_once($CFG->dirroot . '/lib/db/upgradelib.php');
//data ratings didnt store time created and modified so Im using the times from the record the rating was attached to
$ratingssql = 'SELECT r.id AS rid, r.recordid AS itemid, r.rating, r.userid, re.timecreated, re.timemodified, d.scale, d.id AS mid
FROM {data_ratings} r

View File

@ -287,7 +287,7 @@ function xmldb_forum_upgrade($oldversion) {
if($result && $oldversion < 2010041300) {
//migrate forumratings to the central rating table
require_once('../lib/db/upgradelib.php');
require_once($CFG->dirroot . '/lib/db/upgradelib.php');
//forum ratings only have a single time column so use it for both time created and modified
$ratingssql = 'SELECT r.id AS rid, r.post AS itemid, r.rating, r.userid, r.time AS timecreated, r.time AS timemodified, f.scale, f.id AS mid

View File

@ -262,7 +262,7 @@ function xmldb_glossary_upgrade($oldversion) {
if($result && $oldversion < 2010041300) {
//migrate glossary_ratings to the central rating table
require_once('../lib/db/upgradelib.php');
require_once($CFG->dirroot . '/lib/db/upgradelib.php');
//glossary ratings only have a single time column so use it for both time created and modified
$ratingssql = 'SELECT r.id AS rid, r.entryid AS itemid, r.rating, r.userid, r.time AS timecreated, r.time AS timemodified, g.scale, g.id AS mid