diff --git a/core/upgrade/upgrade_menu.php b/core/upgrade/upgrade_menu.php index b79c5e53f6..923dd50e84 100644 --- a/core/upgrade/upgrade_menu.php +++ b/core/upgrade/upgrade_menu.php @@ -351,8 +351,8 @@ function do_upgrade_schema() { global $database; //get the database schema put it into an array then compare and update the database as needed. - $obj = new schema(); - echo $obj->schema('text'); + $schema = new schema(); + echo $schema->upgrade('text'); } /** @@ -428,8 +428,8 @@ function do_upgrade_defaults() { echo $text['label-database'] . "\n"; //make sure the database schema and installation have performed all necessary tasks - $obj = new schema; - echo $obj->schema("text"); + $schema = new schema; + echo $schema->upgrade("text"); //run all app_defaults.php files $domain = new domains; diff --git a/core/upgrade/upgrade_schema.php b/core/upgrade/upgrade_schema.php index b91291edb3..8231302c9c 100644 --- a/core/upgrade/upgrade_schema.php +++ b/core/upgrade/upgrade_schema.php @@ -59,8 +59,8 @@ $text = $language->get(); //get the database schema put it into an array then compare and update the database as needed. - $obj = new schema(['database' => $database]); - echo $obj->schema($format); + $schema = new schema(['database' => $database]); + echo $schema->upgrade($format); //formatting for html if (!$included && $format == 'html') {