From 1dee0683ef02e6a059708d0796181d558c831852 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Wed, 12 Oct 2022 09:47:19 -0600 Subject: [PATCH] Add missing resources/require.php --- core/upgrade/upgrade_schema.php | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/core/upgrade/upgrade_schema.php b/core/upgrade/upgrade_schema.php index 00c82e3b99..c5a83ae042 100644 --- a/core/upgrade/upgrade_schema.php +++ b/core/upgrade/upgrade_schema.php @@ -34,14 +34,11 @@ set_include_path(parse_ini_file($conf[0])['document.root']); //includes files + require_once "resources/require.php"; include "resources/functions.php"; - require_once "resources/classes/text.php"; - $_SERVER["DOCUMENT_ROOT"] = $document_root; - $format = 'text'; //html, text - //add multi-lingual support - $language = new text; - $text = $language->get(); + //set the format + $format = 'text'; //html, text } else if (!$included) { //set the include path @@ -58,13 +55,17 @@ echo "access denied"; exit; } - require_once "resources/header.php"; - $document['title'] = $text['title-upgrade_schema']; + //set the title and format + $document['title'] = $text['title-upgrade_schema']; $format = 'html'; //html, text } +//add multi-lingual support + $language = new text; + $text = $language->get(); + //get the database schema put it into an array then compare and update the database as needed. require_once "resources/classes/schema.php"; $obj = new schema;