mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
MDL-21657 Fixing incorrect usage of relative path in require_once() and tab indentation
This commit is contained in:
parent
79312a06e4
commit
5e1bccd227
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user