Permalink
Browse files

Change boolean osc_cfg to foreign languages

and getting up with line break

True/False and true/false change to admin language definations value
everywhere on applications

Signed-off-by: Gergely <t-gely@freemail.hu>
  • Loading branch information...
1 parent cd396f9 commit 32f92a6c610a3121e4426ff77bca177e1b019f0c @tgely committed Sep 8, 2010
@@ -28,11 +28,11 @@ function osc_cfg_set_boolean_value($select_array, $default, $key = null) {
$select_array[$i] = $value;
- if ( $value === -1 ) {
+ if ( $value === -1 || $value === 'false' || $value === 'False') {
$value = OSCOM::getDef('parameter_false');
} elseif ( $value === 0 ) {
$value = OSCOM::getDef('parameter_optional');
- } elseif ( $value === 1 ) {
+ } elseif ( $value === 1 || $value === 'true' || $value === 'True') {
$value = OSCOM::getDef('parameter_true');
}
@@ -46,7 +46,7 @@ function osc_cfg_set_boolean_value($select_array, $default, $key = null) {
}
if ( !empty($string) ) {
- $string = substr($string, 0, -6);
+ $string = '<br />' . substr($string, 0, -6);
}
return $string;

0 comments on commit 32f92a6

Please sign in to comment.