From 4144cbc35eb5ff1cdf8533a70b085ea144351a20 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Thu, 15 Jan 2026 13:15:20 -0700 Subject: [PATCH] Use schema object name and upgrade for the method --- core/upgrade/upgrade_menu.php | 8 ++++---- core/upgrade/upgrade_schema.php | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) 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') {