diff --git a/core/extension.class.php b/core/extension.class.php index 98d6bc15..698731dc 100644 --- a/core/extension.class.php +++ b/core/extension.class.php @@ -92,6 +92,9 @@ abstract class SimpleExtension implements Extension { var $theme; var $_child; + // in PHP5.3, late static bindings can take care of this; __CLASS__ + // used here will refer to the subclass + // http://php.net/manual/en/language.oop5.late-static-bindings.php public function i_am($child) { $this->_child = $child; if(is_null($this->theme)) $this->theme = get_theme_object($child, false);