Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Changed name of upgrade_moodle function to main_upgrade (for consiste…

…ncy)
  • Loading branch information...
commit e7311a0a56b5e73f06a64f0802081886e7dcc880 1 parent 3bd8740
moodler authored
Showing with 4 additions and 4 deletions.
  1. +2 −2 admin/index.php
  2. +1 −1  lib/db/mysql.php
  3. +1 −1  lib/db/postgres7.php
View
4 admin/index.php
@@ -68,7 +68,7 @@
print_header($strdatabasechecking, $strdatabasechecking, $strdatabasechecking);
notify($strdatabasechecking);
$db->debug=true;
- if (upgrade_moodle($CFG->version)) {
+ if (main_upgrade($CFG->version)) {
$db->debug=false;
if (set_config("version", $version)) {
notify($strdatabasesuccess);
@@ -95,7 +95,7 @@
die;
} else {
$db->debug=true;
- if (upgrade_moodle(0)) {
+ if (main_upgrade(0)) {
print_continue("index.php");
} else {
error("A problem occurred inserting current version into databases");
View
2  lib/db/mysql.php
@@ -17,7 +17,7 @@
//
// This file is tailored to MySQL
-function upgrade_moodle($oldversion=0) {
+function main_upgrade($oldversion=0) {
if ($oldversion == 0) {
execute_sql("
View
2  lib/db/postgres7.php
@@ -17,7 +17,7 @@
//
// This file is tailored to PostgreSQL 7
-function upgrade_moodle($oldversion=0) {
+function main_upgrade($oldversion=0) {
return true;
}
Please sign in to comment.
Something went wrong with that request. Please try again.