diff options
-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/'); |