From 28b8da6d0bd433da1c90de91a0de259992256f50 Mon Sep 17 00:00:00 2001 From: jakr Date: Sun, 5 Aug 2012 15:59:49 +0300 Subject: [PATCH] Change name() to getName(), trac 7736. --- code/model/Widget.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/model/Widget.php b/code/model/Widget.php index 8ef5b7a..5da61e4 100644 --- a/code/model/Widget.php +++ b/code/model/Widget.php @@ -91,7 +91,7 @@ class Widget extends DataObject { $output = ''; $fields = $this->getCMSFields(); foreach($fields as $field) { - $name = $field->Name(); + $name = $field->getName(); $field->setValue($this->getField($name)); $renderedField = $field->FieldHolder(); $renderedField = preg_replace("/name=\"([A-Za-z0-9\-_]+)\"/", "name=\"Widget[" . $this->ID . "][\\1]\"", $renderedField);