Update index.php
This commit is contained in:
parent
cb12138405
commit
782769d683
|
|
@ -17,7 +17,7 @@
|
||||||
|
|
||||||
The Initial Developer of the Original Code is
|
The Initial Developer of the Original Code is
|
||||||
Mark J Crane <markjcrane@fusionpbx.com>
|
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.
|
the Initial Developer. All Rights Reserved.
|
||||||
|
|
||||||
Contributor(s):
|
Contributor(s):
|
||||||
|
|
@ -97,14 +97,7 @@
|
||||||
if ($do["apps"] && permission_exists("upgrade_apps")) {
|
if ($do["apps"] && permission_exists("upgrade_apps")) {
|
||||||
require_once "resources/classes/domains.php";
|
require_once "resources/classes/domains.php";
|
||||||
$domain = new domains;
|
$domain = new domains;
|
||||||
ob_start();
|
|
||||||
$domain->display_type = 'text';
|
|
||||||
$domain->upgrade();
|
$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);
|
messages::add($text['message-upgrade_apps'], null, $message_timeout);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -271,4 +264,5 @@
|
||||||
|
|
||||||
//include the footer
|
//include the footer
|
||||||
require_once "resources/footer.php";
|
require_once "resources/footer.php";
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue