Revision e2a023ca
Von Moritz Bunkus vor etwa 10 Jahren hinzugefügt
SL/DB/CustomVariable.pm | ||
---|---|---|
|
||
die 'not an accessor' if @_ > 1;
|
||
|
||
if ($type eq 'boolean') {
|
||
if ($type eq 'bool') {
|
||
return $self->bool_value ? $::locale->text('Yes') : $::locale->text('No');
|
||
} elsif ($type eq 'timestamp') {
|
||
return $::locale->reformat_date( { dateformat => 'yy-mm-dd' }, $self->timestamp_value->ymd, $::myconfig{dateformat});
|
Auch abrufbar als: Unified diff
SL::DB::CustomVariable: value_as_text() für Typ 'bool' gefixt
Der Typ heißt 'bool' und nicht 'boolean'.