From 1bf6495ae079b39c3a73c25b4e484365a0aca4cd Mon Sep 17 00:00:00 2001 From: Sean Harvey Date: Sat, 19 May 2012 18:16:31 +1200 Subject: [PATCH] MINOR Partially reverted 4d4f9e08d9 as we don't need to check forTemplate() exists --- view/SSViewer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/view/SSViewer.php b/view/SSViewer.php index 456822048..d03dd9336 100644 --- a/view/SSViewer.php +++ b/view/SSViewer.php @@ -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(); } }