- Remove spaces and special characters from the name Softkey

This commit is contained in:
PhantomVl 2019-05-29 20:47:15 +03:00
parent cf54bb400a
commit aadd1deb5b
2 changed files with 2 additions and 2 deletions

View file

@ -845,7 +845,7 @@ class Sccp_manager extends \FreePBX_Helpers implements \BMO {
break;
case 'updateSoftKey':
if (!empty($request['id'])) {
$id_name = $request['id'];
$id_name = preg_replace('/[^A-Za-z0-9]/', '', $request['id']);
$this->sccp_conf_init[$id_name]['type'] = "softkeyset";
foreach ($this->extconfigs->getextConfig('keyset') as $keyl => $vall) {
if (!empty($request[$keyl])) {

View file

@ -143,7 +143,7 @@ print_r("<br> Help Info:<br><pre>");
foreach ($this->info_warning as $key => $value) {
echo '<h3>'.$key.'</h3>';
if (is_array($value)) {
echo '<li>'.implode('</li><li>', $value).'</li>';
echo '<li>'._(implode('</li><li>', $value)).'</li>';
} else {
echo '<li>'. _($value).'</li>';
}