mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Landing pull request 3. BUGFIX: Object::__call() checking the wrong static. Fixes #6438
This commit is contained in:
parent
14c60c5d9a
commit
44dabbb865
@ -679,7 +679,7 @@ abstract class Object {
|
|||||||
public function __call($method, $arguments) {
|
public function __call($method, $arguments) {
|
||||||
// If the method cache was cleared by an an Object::add_extension() / Object::remove_extension()
|
// If the method cache was cleared by an an Object::add_extension() / Object::remove_extension()
|
||||||
// call, then we should rebuild it.
|
// call, then we should rebuild it.
|
||||||
if(empty(self::$cached_statics[get_class($this)])) {
|
if(empty(self::$extra_methods[get_class($this)])) {
|
||||||
$this->defineMethods();
|
$this->defineMethods();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user