diff --git a/contrib/link_image/main.php b/contrib/link_image/main.php index ee53f1c0..dd4e91d0 100644 --- a/contrib/link_image/main.php +++ b/contrib/link_image/main.php @@ -10,13 +10,13 @@ class LinkImage extends Extension { $this->theme->links_block($page, $this->data($event->image)); } - public function onSetupBuildingEvent(SetupBuildingEvent $event) { + public function onSetupBuilding(SetupBuildingEvent $event) { $sb = new SetupBlock("Link to Image"); $sb->add_text_option("ext_link-img_text-link_format", "Text Link Format: "); $event->panel->add_block($sb); } - public function onInitExtEvent(InitExtEvent $event) { + public function onInitExt(InitExtEvent $event) { global $config; $config->set_default_string("ext_link-img_text-link_format", '$title - $id ($ext $size $filesize)'); } diff --git a/contrib/rating/main.php b/contrib/rating/main.php index 072f11e2..861daa7d 100644 --- a/contrib/rating/main.php +++ b/contrib/rating/main.php @@ -22,7 +22,7 @@ class Ratings extends Extension { public function get_priority() {return 50;} - public function onInitExt($event) { + public function onInitExt(InitExtEvent $event) { global $config; if($config->get_int("ext_ratings2_version") < 2) { @@ -149,10 +149,6 @@ class Ratings extends Extension { } } - - - - public static function get_user_privs($user) { global $config; if($user->is_anonymous()) {