mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
MINOR Code formatting in SSViewer
This commit is contained in:
parent
e5e8f489a2
commit
4d4f9e08d9
@ -447,7 +447,9 @@ class SSViewer_DataPresenter extends SSViewer_Scope {
|
||||
}
|
||||
else { // XML_val
|
||||
if ($val = $this->getInjectedValue($property, $params)) {
|
||||
$hasInjected = true; $obj = $val['obj']; $res = $obj->forTemplate();
|
||||
$hasInjected = true;
|
||||
$obj = $val['obj'];
|
||||
$res = ($obj->hasMethod('forTemplate')) ? $obj->forTemplate() : '';
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user