Rename obj to schema and method schema to upgrade

This commit is contained in:
FusionPBX
2026-01-13 11:47:35 -07:00
committed by GitHub
parent 2975e166fc
commit 10cf76b961

View File

@@ -149,8 +149,8 @@
//load an array of the database schema and compare it with the active database
if (!empty($action["upgrade_schema"]) && permission_exists("upgrade_schema")) {
//update the database schema and types
$obj = new schema(['database' => $database]);
$_SESSION["response"]["schema"] = $obj->schema("html");
$schema = new schema(['database' => $database]);
$_SESSION["response"]["schema"] = $schema->upgrade("html");
message::add($text['message-upgrade_schema'], null, $message_timeout);
}