mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
MINOR Code formatting fix in DateField
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.3@70953 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
b9f0f0bbfd
commit
66ce174441
@ -112,12 +112,12 @@ class DateField_Disabled extends DateField {
|
||||
$df->setValue($this->dataValue());
|
||||
|
||||
if(date('Y-m-d', time()) == $this->dataValue()) {
|
||||
$val = Convert::raw2xml($this->value . ' ('._t('DateField.TODAY','today').')');
|
||||
$val = Convert::raw2xml($this->value . ' ('._t('DateField.TODAY','today').')');
|
||||
} else {
|
||||
$val = Convert::raw2xml($this->value . ', ' . $df->Ago());
|
||||
}
|
||||
} else {
|
||||
$val = '<i>('._t('DateField.NOTSET', 'not set').')</i>';
|
||||
$val = '<i>('._t('DateField.NOTSET', 'not set').')</i>';
|
||||
}
|
||||
|
||||
return "<span class=\"readonly\" id=\"" . $this->id() . "\">$val</span>
|
||||
|
Loading…
Reference in New Issue
Block a user