From e08acc08d1926ac319a5799e0d6a71099e7439b9 Mon Sep 17 00:00:00 2001 From: Normann Lou Date: Sun, 25 Nov 2007 21:07:02 +0000 Subject: [PATCH] change hasClass() to adapt the extraClass is a array instead of a blank delimited string in inform customised code. git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@45582 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- forms/FormField.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/forms/FormField.php b/forms/FormField.php index cee7abeaf..a843c9075 100644 --- a/forms/FormField.php +++ b/forms/FormField.php @@ -329,7 +329,7 @@ HTML; function hasClass($class){ $patten = '/'.strtolower($class).'/i'; - $subject = strtolower($this->class." ".$this->extraClass); + $subject = strtolower($this->class." ".$this->extraClass()); return preg_match($patten, $subject); }