From e7311a0a56b5e73f06a64f0802081886e7dcc880 Mon Sep 17 00:00:00 2001 From: moodler Date: Wed, 23 Oct 2002 04:10:10 +0000 Subject: [PATCH] Changed name of upgrade_moodle function to main_upgrade (for consistency) --- admin/index.php | 4 ++-- lib/db/mysql.php | 2 +- lib/db/postgres7.php | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/admin/index.php b/admin/index.php index cc6fc72ca9..dda74bbb97 100644 --- a/admin/index.php +++ b/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"); diff --git a/lib/db/mysql.php b/lib/db/mysql.php index 5fdd2b0e06..9eb5363792 100644 --- a/lib/db/mysql.php +++ b/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(" diff --git a/lib/db/postgres7.php b/lib/db/postgres7.php index 8cb8b6e6e0..385b4b6b1e 100644 --- a/lib/db/postgres7.php +++ b/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; } -- 2.39.5