mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
MINOR Partially reverted 4d4f9e08d9
as we don't need to check
forTemplate() exists
This commit is contained in:
parent
b68e426844
commit
1bf6495ae0
@ -449,7 +449,7 @@ class SSViewer_DataPresenter extends SSViewer_Scope {
|
|||||||
if ($val = $this->getInjectedValue($property, $params)) {
|
if ($val = $this->getInjectedValue($property, $params)) {
|
||||||
$hasInjected = true;
|
$hasInjected = true;
|
||||||
$obj = $val['obj'];
|
$obj = $val['obj'];
|
||||||
$res = ($obj->hasMethod('forTemplate')) ? $obj->forTemplate() : '';
|
$res = $obj->forTemplate();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user