mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
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
This commit is contained in:
parent
a66d6ad93c
commit
e08acc08d1
@ -329,7 +329,7 @@ HTML;
|
|||||||
|
|
||||||
function hasClass($class){
|
function hasClass($class){
|
||||||
$patten = '/'.strtolower($class).'/i';
|
$patten = '/'.strtolower($class).'/i';
|
||||||
$subject = strtolower($this->class." ".$this->extraClass);
|
$subject = strtolower($this->class." ".$this->extraClass());
|
||||||
return preg_match($patten, $subject);
|
return preg_match($patten, $subject);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user