From f8a3d95e832c301dd3766da4e8f5c1faa4258f0b Mon Sep 17 00:00:00 2001 From: fusionate Date: Thu, 18 May 2023 20:25:18 +0000 Subject: [PATCH] Upgrade [CLI]: Fix minor language file issue. --- core/upgrade/upgrade.php | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/core/upgrade/upgrade.php b/core/upgrade/upgrade.php index f70ad7f163..a482708f50 100644 --- a/core/upgrade/upgrade.php +++ b/core/upgrade/upgrade.php @@ -209,12 +209,16 @@ } //set the menu back to default - if (isset($argv[2]) && (is_null($argv[2]) || $argv[2] == 'default')) { + if (!isset($argv[2]) || $argv[2] == 'default') { //restore the menu $included = true; require_once("core/menu/menu_restore_default.php"); unset($sel_menu); + //use upgrade language file + $language = new text; + $text = $language->get(null, 'core/upgrade'); + //send message to the console echo $text['message-upgrade_menu']."\n"; } @@ -229,6 +233,10 @@ $included = true; require_once("core/groups/permissions_default.php"); + //use upgrade language file + $language = new text; + $text = $language->get(null, 'core/upgrade'); + //send message to the console echo $text['message-upgrade_permissions']."\n"; } @@ -288,4 +296,4 @@ } } -?> +?> \ No newline at end of file