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:
Ingo Schommer 2008-11-17 23:32:57 +00:00 committed by Sam Minnee
parent a92d2120a1
commit df9472631e

View File

@ -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);
} }
} }