mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
BUGFIX $cache flag wasn't passend through from ViewableData_Customised->XML_val() to ViewableData->XML_val()
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.3@66091 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
a92d2120a1
commit
df9472631e
@ -963,7 +963,7 @@ class ViewableData_Customised extends ViewableData {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function XML_val($fieldName, $args = null) {
|
function XML_val($fieldName, $args = null, $cache = false) {
|
||||||
if(isset($this->extraData[$fieldName])) {
|
if(isset($this->extraData[$fieldName])) {
|
||||||
if(isset($_GET['debug_profile'])) {
|
if(isset($_GET['debug_profile'])) {
|
||||||
Profiler::mark("template($fieldName)", " on $this->class object");
|
Profiler::mark("template($fieldName)", " on $this->class object");
|
||||||
@ -981,7 +981,7 @@ class ViewableData_Customised extends ViewableData {
|
|||||||
|
|
||||||
return $val;
|
return $val;
|
||||||
} else {
|
} else {
|
||||||
return $this->obj->XML_val($fieldName, $args);
|
return $this->obj->XML_val($fieldName, $args, $cache);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user