From 7ba41511741314d7794b52ddfc460681087be0d8 Mon Sep 17 00:00:00 2001 From: Michael Klier Date: Sun, 22 Jun 2008 16:41:54 +0200 Subject: 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 --- inc/init.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'inc/init.php') 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/'); -- cgit v1.2.3