mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 11:43:50 +00:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user