forked from Cavemanon/cavepaintings
wibble towards being totally SimpleExtension based, as that's easier to programatically optimise
This commit is contained in:
@@ -20,6 +20,8 @@ class RatingSetEvent extends Event {
|
||||
class Ratings 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);
|
||||
@@ -218,5 +220,4 @@ class Ratings implements Extension {
|
||||
}
|
||||
}
|
||||
}
|
||||
add_event_listener(new Ratings());
|
||||
?>
|
||||
|
Reference in New Issue
Block a user