From df9472631eb7706fb1bc8b3fa075c9e345a47056 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Mon, 17 Nov 2008 23:32:57 +0000 Subject: [PATCH] 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 --- core/ViewableData.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/ViewableData.php b/core/ViewableData.php index b09910515..ef60e3444 100644 --- a/core/ViewableData.php +++ b/core/ViewableData.php @@ -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($_GET['debug_profile'])) { Profiler::mark("template($fieldName)", " on $this->class object"); @@ -981,7 +981,7 @@ class ViewableData_Customised extends ViewableData { return $val; } else { - return $this->obj->XML_val($fieldName, $args); + return $this->obj->XML_val($fieldName, $args, $cache); } }