[dokuwiki] some things too early for any event (loadskin plugin)

  • From: Anika Henke <anika@xxxxxxxxxxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Sun, 28 Nov 2010 11:37:53 +0000

Hi all,

I am currently working on the LoadSkin plugin [http://www.dokuwiki.org/plugin:loadskin] (one of Chi's plugins). And I have a few questions regarding the event system.

On the plugin's page Chi wrote that in order for the plugin to work, DokuWiki's core code needs to be adjusted. Later on in the comments he writes that inc/preload.php could solve that problem (which turns out to be incorrect).

The reason why the core needs to be adjusted:
The plugin changes a config option ($conf['template']). And it needs to do that *before* DOKU_TPL and DOKU_TPLINC are defined.

I guess it would be easiest if there was an event before they are defined (maybe as soon as $conf is defined). But DOKU_TPL etc are defined before the loading of the libraries (in inc/init.php, which is also after preload.php gets included).

Is there any solution to that problem? Could events be loaded earlier?

DokuWiki mailing list - more info at

Other related posts: