BUGFIX Fixed calls to uninherited() that returned no static in some cases, replacing with faster Object::get_static() calls

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@76172 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Sean Harvey 2009-05-06 02:43:18 +00:00
parent d9ea21c68e
commit 257e3bb73e

View File

@ -38,18 +38,15 @@ class Widget extends DataObject {
}
function Title() {
$instance = singleton($this->class);
return $instance->uninherited('title', true);
return Object::get_static($this->class, 'title');
}
function CMSTitle() {
$instance = singleton($this->class);
return $instance->uninherited('cmsTitle', true);
return Object::get_static($this->class, 'cmsTitle');
}
function Description() {
$instance = singleton($this->class);
return $instance->uninherited('description', true);
return Object::get_static($this->class, 'description');
}
function DescriptionSegment() {