openrat-cms

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 39bc368aaaea8a408a536c5aa5ab0e4558226f75
parent 26eae1fc4cbfe56ad3eae05b8d6806c2f71fdf45
Author: dankert <devnull@localhost>
Date:   Sun, 25 Oct 2009 00:30:08 +0200

Auch Datumformat von strftime() jetzt möglich.

Diffstat:
actionClasses/ElementAction.class.php | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/actionClasses/ElementAction.class.php b/actionClasses/ElementAction.class.php @@ -304,7 +304,10 @@ class ElementAction extends Action foreach($ini_date_format as $idx=>$d) { - $dateformat[$idx] = date($d); + if ( strpos($d,'%')!==FALSE ) + $dateformat[$idx] = strftime($d); + else + $dateformat[$idx] = date($d); if ( $d == $this->element->dateformat ) $this->setTemplateVar('dateformat',$idx); }