mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 11:43:50 +00:00
Upgrade - CLI (Manual & Menu): Mitigate PHP 8.x warnings, minor adjustments.
This commit is contained in:
@@ -599,6 +599,10 @@ if (!class_exists('domains')) {
|
||||
*/
|
||||
public function upgrade() {
|
||||
|
||||
//add multi-lingual support
|
||||
$language = new text;
|
||||
$text = $language->get(null, 'core/upgrade');
|
||||
|
||||
//includes files
|
||||
require dirname(__DIR__, 2) . "/resources/require.php";
|
||||
|
||||
@@ -652,6 +656,13 @@ if (!class_exists('domains')) {
|
||||
$domains_processed++;
|
||||
}
|
||||
|
||||
//output result
|
||||
if (defined('STDIN')) {
|
||||
if ($domains_processed > 1) {
|
||||
echo $text['message-upgrade_apps']."\n";
|
||||
}
|
||||
}
|
||||
|
||||
} //end upgrade method
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user