Bug Fix
This commit is contained in:
parent
7914bd9120
commit
cd8e33a063
|
@ -17,7 +17,7 @@ SS SS GG G UU UU II
|
||||||
### Hot Link
|
### Hot Link
|
||||||
|
|
||||||
[](https://github.com/PhantomVl/sccp_manager/archive/master.zip)
|
[](https://github.com/PhantomVl/sccp_manager/archive/master.zip)
|
||||||
[![Download Chan-SCCP channel driver for Asterisk] (https://img.shields.io/sourceforge/dt/chan-sccp-b.svg)](https://github.com/chan-sccp/chan-sccp/releases/latest)
|
[](https://github.com/chan-sccp/chan-sccp/releases/latest)
|
||||||
[![Chan-SCCP Documentation] (https://img.shields.io/badge/docs-wiki-blue.svg)](https://github.com/chan-sccp/chan-sccp/wiki)
|
[![Chan-SCCP Documentation] (https://img.shields.io/badge/docs-wiki-blue.svg)](https://github.com/chan-sccp/chan-sccp/wiki)
|
||||||
|
|
||||||
This module has been developed to help IT Staff with their Asterisk-Cisco infrastructure deployment,
|
This module has been developed to help IT Staff with their Asterisk-Cisco infrastructure deployment,
|
||||||
|
|
|
@ -219,7 +219,7 @@ class extconfigs {
|
||||||
$adv_config = Array('tftproot' => '', 'firmware' => 'firmware', 'settings' => 'settings',
|
$adv_config = Array('tftproot' => '', 'firmware' => 'firmware', 'settings' => 'settings',
|
||||||
'locales' => 'locales', 'languages' => 'languages', 'templates' => 'templates');
|
'locales' => 'locales', 'languages' => 'languages', 'templates' => 'templates');
|
||||||
$adv_tree['pro'] = Array('templates' => 'tftproot', 'settings' => 'tftproot', 'locales' => 'tftproot', 'firmware' => 'tftproot', 'languages' => 'locales');
|
$adv_tree['pro'] = Array('templates' => 'tftproot', 'settings' => 'tftproot', 'locales' => 'tftproot', 'firmware' => 'tftproot', 'languages' => 'locales');
|
||||||
$adv_tree['def'] = Array('templates' => 'tftproot', 'settings' => 'tftproot', 'locales' => 'tftproot', 'firmware' => 'tftproot', 'languages' => 'tftproot');
|
$adv_tree['def'] = Array('templates' => 'tftproot', 'settings' => '', 'locales' => '', 'firmware' => '', 'languages' => '');
|
||||||
//* **************------ ****
|
//* **************------ ****
|
||||||
$base_tree = Array('tftp_templates' => 'templates', 'tftp_path_store' => 'settings', 'tftp_lang_path' => 'languages', 'tftp_firmware_path'=>'firmware');
|
$base_tree = Array('tftp_templates' => 'templates', 'tftp_path_store' => 'settings', 'tftp_lang_path' => 'languages', 'tftp_firmware_path'=>'firmware');
|
||||||
|
|
||||||
|
@ -269,8 +269,12 @@ class extconfigs {
|
||||||
}
|
}
|
||||||
foreach ($adv_tree[$adv_tree_mode] as $key => $value) {
|
foreach ($adv_tree[$adv_tree_mode] as $key => $value) {
|
||||||
if (!empty($adv_config[$key])) {
|
if (!empty($adv_config[$key])) {
|
||||||
if (substr($adv_config[$key],0,1) != "/") {
|
if (!empty($value)) {
|
||||||
$adv_config[$key] = $adv_config[$value].'/'.$adv_config[$key];
|
if (substr($adv_config[$key],0,1) != "/") {
|
||||||
|
$adv_config[$key] = $adv_config[$value].'/'.$adv_config[$key];
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
$adv_config[$key] = $adv_config['tftproot'];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue