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 16:39:50 +01:00
committed by FusionPBX
parent b7f4cba09c
commit 2c97ce1144
4 changed files with 46 additions and 53 deletions

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);
}