This is a static dump of issues in the old "Flyspray" bugtracker for DokuWiki. Bugs and feature requests
are now tracked at the issue tracker at Github.
Closed
Won't implement
FS#2081 ability to add hook without including dokuwiki files would be nice
Customization
2010-10-25fanno
may not be a bug but integration problem !
it has been moved from
...inc/events.php -> ...inc/init.php
that in it self is not a "huge problem", and i think i can just include inc/init.php and still do
$hook = new JFusionDokuWikiHook();
$hook->register($EVENT_HANDLER);
however maybe instead you could consider doing this ?
init.php change
// initialize the event handler
global $EVENT_HANDLER;
$EVENT_HANDLER = new Doku_Event_Handler();
to
// initialize the event handler
global $EVENT_HANDLER;
$EVENT_HANDLER = new Doku_Event_Handler();
global $INTEGRATION_HOOK;
if (is_object($INTEGRATION_HOOK)) {
$INTEGRATION_HOOK->register($EVENT_HANDLER);
}
This would mean that it a hook could could be attached without having to include your/dokuwiki's files first. (the check is_object could properly be made better/changed.) I can only compare to smf's hook and it work similar so that you can add a hook from external software.
So in short in jfusion/joomla I would define the $INTEGRATION_HOOK global and enable ability to add hook from external source without loading your framework first. this would remove any problems with variable declared in the wrong order... if one should ever happen.
again not a "bug" so I have set it as a feature request.
2014-02-25Klap-in
What do you mean?
1. That you like to add your own handler structure beneath the dokuwiki's one?
2. Or more a variant at the $plugin_controller_class which can be defined in the preload.php, but in your case for the event handler..?
Solutions:
1. I think this can be already be done by using preload.php
2. therefore a check if $event_handler is already defined is required.
...but i have no idea what you like to reach with this...