Theme: Integrate settings to customize the style of edit form tables (label, field, heading and row cells).

Editor: Prevent / (slashes) in clip name.
Dialplan Editor: Code cleanup, and minor adjustments for theme compatibility.
Functions: Add option to check_str() to skip string trim.
This commit is contained in:
reliberate
2016-04-07 12:00:19 -06:00
parent 87adfbae24
commit 75ec879ff9
6 changed files with 250 additions and 95 deletions
+3 -2
View File
@@ -53,7 +53,7 @@
}
if (!function_exists('check_str')) {
function check_str($string) {
function check_str($string, $trim = true) {
global $db_type, $db;
//when code in db is urlencoded the ' does not need to be modified
if ($db_type == "sqlite") {
@@ -83,7 +83,8 @@
$string = str_replace($search, $replace, $string);
}
}
return trim($string); //remove white space
$string = ($trim) ? trim($string) : $string;
return $string;
}
}