diff options
author | Michael Klier <chi@chimeric.de> | 2008-06-22 16:41:54 +0200 |
---|---|---|
committer | Michael Klier <chi@chimeric.de> | 2008-06-22 16:41:54 +0200 |
commit | 7ba41511741314d7794b52ddfc460681087be0d8 (patch) | |
tree | ada611b9efc7ac5511d7fb8eb8600120b26c7f7f | |
parent | 5b037208e131484949e86b50b6dd198dfd117708 (diff) | |
download | rpg-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
-rw-r--r-- | data/cache/_dummy | 0 | ||||
-rw-r--r-- | inc/init.php | 5 |
2 files changed, 5 insertions, 0 deletions
diff --git a/data/cache/_dummy b/data/cache/_dummy deleted file mode 100644 index e69de29bb..000000000 --- a/data/cache/_dummy +++ /dev/null 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/'); |