summaryrefslogtreecommitdiff
path: root/inc/init.php
diff options
context:
space:
mode:
authorMichael Klier <chi@chimeric.de>2008-06-22 16:41:54 +0200
committerMichael Klier <chi@chimeric.de>2008-06-22 16:41:54 +0200
commit7ba41511741314d7794b52ddfc460681087be0d8 (patch)
treeada611b9efc7ac5511d7fb8eb8600120b26c7f7f /inc/init.php
parent5b037208e131484949e86b50b6dd198dfd117708 (diff)
downloadrpg-7ba41511741314d7794b52ddfc460681087be0d8.tar.gz
rpg-7ba41511741314d7794b52ddfc460681087be0d8.tar.bz2
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
Diffstat (limited to 'inc/init.php')
-rw-r--r--inc/init.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/inc/init.php b/inc/init.php
index 5a565c9af..854d42932 100644
--- a/inc/init.php
+++ b/inc/init.php
@@ -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/');