wibble towards being totally SimpleExtension based, as that's easier to programatically optimise

This commit is contained in:
Shish
2012-01-27 18:16:46 +00:00
parent c1aa6f4fbb
commit 6e64857936
23 changed files with 95 additions and 58 deletions

View File

@@ -38,6 +38,8 @@ class AdminBuildingEvent extends Event {
class AdminPage implements Extension {
var $theme;
public function get_priority() {return 50;}
public function receive_event(Event $event) {
global $config, $database, $page, $user;
if(is_null($this->theme)) $this->theme = get_theme_object($this);
@@ -179,5 +181,4 @@ class AdminPage implements Extension {
}
*/
}
add_event_listener(new AdminPage());
?>