- Remove spaces and special characters from the name Softkey
This commit is contained in:
parent
81d42b0b25
commit
8d92da8426
|
@ -845,7 +845,7 @@ class Sccp_manager extends \FreePBX_Helpers implements \BMO {
|
||||||
break;
|
break;
|
||||||
case 'updateSoftKey':
|
case 'updateSoftKey':
|
||||||
if (!empty($request['id'])) {
|
if (!empty($request['id'])) {
|
||||||
$id_name = preg_replace('/\s/', '', $request['id']);
|
$id_name = preg_replace('/[^A-Za-z0-9]/', '', $request['id']);
|
||||||
$this->sccp_conf_init[$id_name]['type'] = "softkeyset";
|
$this->sccp_conf_init[$id_name]['type'] = "softkeyset";
|
||||||
foreach ($this->extconfigs->getextConfig('keyset') as $keyl => $vall) {
|
foreach ($this->extconfigs->getextConfig('keyset') as $keyl => $vall) {
|
||||||
if (!empty($request[$keyl])) {
|
if (!empty($request[$keyl])) {
|
||||||
|
|
|
@ -143,7 +143,7 @@ print_r("<br> Help Info:<br><pre>");
|
||||||
foreach ($this->info_warning as $key => $value) {
|
foreach ($this->info_warning as $key => $value) {
|
||||||
echo '<h3>'.$key.'</h3>';
|
echo '<h3>'.$key.'</h3>';
|
||||||
if (is_array($value)) {
|
if (is_array($value)) {
|
||||||
echo '<li>'.implode('</li><li>', $value).'</li>';
|
echo '<li>'._(implode('</li><li>', $value)).'</li>';
|
||||||
} else {
|
} else {
|
||||||
echo '<li>'. _($value).'</li>';
|
echo '<li>'. _($value).'</li>';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue