Update index.php

This commit is contained in:
FusionPBX 2018-02-25 01:28:09 -07:00 committed by GitHub
parent cb12138405
commit 782769d683
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 8 deletions

View File

@ -17,7 +17,7 @@
The Initial Developer of the Original Code is
Mark J Crane <markjcrane@fusionpbx.com>
Portions created by the Initial Developer are Copyright (C) 2008-2016
Portions created by the Initial Developer are Copyright (C) 2008-2018
the Initial Developer. All Rights Reserved.
Contributor(s):
@ -97,14 +97,7 @@
if ($do["apps"] && permission_exists("upgrade_apps")) {
require_once "resources/classes/domains.php";
$domain = new domains;
ob_start();
$domain->display_type = 'text';
$domain->upgrade();
$_SESSION["response"]["upgrade_apps"] = ob_get_flush();
if (strlen($_SESSION["response"]["upgrade_apps"]) == 0) {
$_SESSION["response"]["upgrade_apps"] = "No items updated or added";
}
$_SESSION["response"]["upgrade_apps"] = explode("\n", $_SESSION["response"]["upgrade_apps"]);
messages::add($text['message-upgrade_apps'], null, $message_timeout);
}
@ -271,4 +264,5 @@
//include the footer
require_once "resources/footer.php";
?>