summaryrefslogtreecommitdiff
path: root/inc/init.php
diff options
context:
space:
mode:
authorMichael Klier <chi@chimeric.de>2010-03-26 11:43:35 +0100
committerMichael Klier <chi@chimeric.de>2010-03-26 11:43:35 +0100
commitf1986589078b5e2e3aecc37d8f28b03caa3b8c17 (patch)
tree6f5562e108681bff91e3f44cb4219f8032b51a28 /inc/init.php
parent229529655f061863ec76db9ea557fef8b1a5161b (diff)
downloadrpg-f1986589078b5e2e3aecc37d8f28b03caa3b8c17.tar.gz
rpg-f1986589078b5e2e3aecc37d8f28b03caa3b8c17.tar.bz2
moved plugincontroller and event handler creation to init.php
Diffstat (limited to 'inc/init.php')
-rw-r--r--inc/init.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/inc/init.php b/inc/init.php
index ae44ad1a9..3a9988fcf 100644
--- a/inc/init.php
+++ b/inc/init.php
@@ -246,9 +246,21 @@ init_files();
scriptify(DOKU_CONF.'users.auth');
scriptify(DOKU_CONF.'acl.auth');
+// setup plugin controller class (can be overwritten in preload.php)
+$plugin_types = array('admin','syntax','action','renderer', 'helper');
+global $plugin_controller_class, $plugin_controller;
+if (empty($plugin_controller_class)) $plugin_controller_class = 'Doku_Plugin_Controller';
+
// load libraries
require_once(DOKU_INC.'inc/load.php');
+// initialize plugin controller
+$plugin_controller = new $plugin_controller_class();
+
+// initialize the event handler
+global $EVENT_HANDLER;
+$EVENT_HANDLER = new Doku_Event_Handler();
+
// setup authentication system
if (!defined('NOSESSION')) {
auth_setup();