MINOR Partially reverted 4d4f9e08d9 as we don't need to check

forTemplate() exists
This commit is contained in:
Sean Harvey 2012-05-19 18:16:31 +12:00
parent b68e426844
commit 1bf6495ae0

View File

@ -449,7 +449,7 @@ class SSViewer_DataPresenter extends SSViewer_Scope {
if ($val = $this->getInjectedValue($property, $params)) {
$hasInjected = true;
$obj = $val['obj'];
$res = ($obj->hasMethod('forTemplate')) ? $obj->forTemplate() : '';
$res = $obj->forTemplate();
}
}