mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
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:
parent
d9ea21c68e
commit
257e3bb73e
@ -38,18 +38,15 @@ class Widget extends DataObject {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function Title() {
|
function Title() {
|
||||||
$instance = singleton($this->class);
|
return Object::get_static($this->class, 'title');
|
||||||
return $instance->uninherited('title', true);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function CMSTitle() {
|
function CMSTitle() {
|
||||||
$instance = singleton($this->class);
|
return Object::get_static($this->class, 'cmsTitle');
|
||||||
return $instance->uninherited('cmsTitle', true);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function Description() {
|
function Description() {
|
||||||
$instance = singleton($this->class);
|
return Object::get_static($this->class, 'description');
|
||||||
return $instance->uninherited('description', true);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function DescriptionSegment() {
|
function DescriptionSegment() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user