<green-ponies> I put an event in your event , so you can listen while you lis... okay that's terrible
This commit is contained in:
parent
a54ab11205
commit
b1c7c79b2c
2 changed files with 3 additions and 7 deletions
|
@ -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)');
|
||||
}
|
||||
|
|
|
@ -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()) {
|
||||
|
|
Reference in a new issue