Enhance - Display text on app_defaults (#2645)

enable display_type on domains (and therefore app_defaults)
capture the output of app_defaults
format if statements to project preference
use more generic label display for results reducing number of translations required
change upgrade.php to use the more consistent $display_type
This commit is contained in:
Mafoo
2017-06-08 09:39:50 -06:00
committed by FusionPBX
parent f0feb25016
commit bfe3ff173f
4 changed files with 46 additions and 53 deletions
+2
View File
@@ -30,6 +30,7 @@ if (!class_exists('domains')) {
//define variables
public $db;
public $display_type;
//class constructor
public function __construct() {
@@ -344,6 +345,7 @@ if (!class_exists('domains')) {
//get the list of installed apps from the core and mod directories and execute the php code in app_defaults.php
$default_list = glob($_SERVER["DOCUMENT_ROOT"] . PROJECT_PATH . "/*/*/app_defaults.php");
$display_type = $this->display_type;
foreach ($default_list as &$default_path) {
include($default_path);
}