Skip to content

Commit

Permalink
Changed name of upgrade_moodle function to main_upgrade (for consiste…
Browse files Browse the repository at this point in the history
…ncy)
  • Loading branch information
moodler committed Oct 23, 2002
1 parent 3bd8740 commit e7311a0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions admin/index.php
Expand Up @@ -68,7 +68,7 @@
print_header($strdatabasechecking, $strdatabasechecking, $strdatabasechecking); print_header($strdatabasechecking, $strdatabasechecking, $strdatabasechecking);
notify($strdatabasechecking); notify($strdatabasechecking);
$db->debug=true; $db->debug=true;
if (upgrade_moodle($CFG->version)) { if (main_upgrade($CFG->version)) {
$db->debug=false; $db->debug=false;
if (set_config("version", $version)) { if (set_config("version", $version)) {
notify($strdatabasesuccess); notify($strdatabasesuccess);
Expand All @@ -95,7 +95,7 @@
die; die;
} else { } else {
$db->debug=true; $db->debug=true;
if (upgrade_moodle(0)) { if (main_upgrade(0)) {
print_continue("index.php"); print_continue("index.php");
} else { } else {
error("A problem occurred inserting current version into databases"); error("A problem occurred inserting current version into databases");
Expand Down
2 changes: 1 addition & 1 deletion lib/db/mysql.php
Expand Up @@ -17,7 +17,7 @@
// //
// This file is tailored to MySQL // This file is tailored to MySQL


function upgrade_moodle($oldversion=0) { function main_upgrade($oldversion=0) {


if ($oldversion == 0) { if ($oldversion == 0) {
execute_sql(" execute_sql("
Expand Down
2 changes: 1 addition & 1 deletion lib/db/postgres7.php
Expand Up @@ -17,7 +17,7 @@
// //
// This file is tailored to PostgreSQL 7 // This file is tailored to PostgreSQL 7


function upgrade_moodle($oldversion=0) { function main_upgrade($oldversion=0) {


return true; return true;
} }
Expand Down

0 comments on commit e7311a0

Please sign in to comment.