added DOKUWIKI_INIT event
This patch adds a new event DOKUWIKI_INIT to the event system. The event is triggered in inc/init.php right after DOKU_INC has been defined and allows action plugins to interfere with DokuWiki s init process. darcs-hash:20080622144154-23886-5153094bd78c2cea7f97e24c7b41cac6c641f49f.gz
This commit is contained in:
parent
5b037208e1
commit
7ba4151174
|
@ -13,6 +13,11 @@
|
|||
// define the include path
|
||||
if(!defined('DOKU_INC')) define('DOKU_INC',fullpath(dirname(__FILE__).'/../').'/');
|
||||
|
||||
// trigger DOKUWIKI_INIT event to allow action plugins to overwrite constants
|
||||
// load events.php, external scripts can just include inc/init.php
|
||||
require_once(DOKU_INC.'inc/events.php');
|
||||
trigger_event('DOKUWIKI_INIT', $tmp=array());
|
||||
|
||||
// define config path (packagers may want to change this to /etc/dokuwiki/)
|
||||
if(!defined('DOKU_CONF')) define('DOKU_CONF',DOKU_INC.'conf/');
|
||||
|
||||
|
|
Loading…
Reference in New Issue