openrat-cms

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

commit 92c184f89dce097b419b458bd95b495b2f99dd08
parent 9c009ba8e06d9e2ebfd0a2cbb6f005a22821e46b
Author: Jan Dankert <devnull@localhost>
Date:   Fri,  1 Aug 2014 00:01:12 +0200

Fix: Parameter├╝bergabe an die Makros.

Diffstat:
macro/Album.class.php | 1-
model/Value.class.php | 5++---
2 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/macro/Album.class.php b/macro/Album.class.php @@ -62,7 +62,6 @@ class Album extends Macro $folderid = $this->folderid; else $folderid = $this->page->parentid; - //Html::debug($folderid); $f = new Folder($folderid); diff --git a/model/Value.class.php b/model/Value.class.php @@ -1231,12 +1231,11 @@ SQL $value = new Value(); $value->elementid = $elementid; $value->element = new Element( $elementid ); + $value->element->load(); $value->pageid = $this->page->pageid; $value->languageid = $this->page->languageid; $value->load(); - Logger::debug('TEST: '.$value->linkToObjectId); - $param_value = $value->getRawValue(); } if ( isset( $dynEl->$param_name ) ) @@ -1653,7 +1652,7 @@ SQL return $this->linkToObjectId; case 'date'; - return $this->number; + return $this->date; default: return $this->text;