From 48beefec86c6c69e0f79fc5cb1c7b6f1fb937973 Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Sat, 28 Jun 2008 00:26:29 +0200 Subject: [PATCH] support for an option inc/preload.php file This patch readds the possibilities previously gained by the DOKUWIKI_INIT event by adding support for including a file named inc/preload.php. When available, it will be included before any defines for dokuwiki are set. darcs-hash:20080627222629-7ad00-a663ded7ac08369f011e1f63e1c60fa81ec05b51.gz --- inc/init.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/inc/init.php b/inc/init.php index 5a565c9af..aa0748207 100644 --- a/inc/init.php +++ b/inc/init.php @@ -10,6 +10,9 @@ } define('DOKU_START_TIME', delta_time()); + // if available load a preload config file + @include(fullpath(dirname(__FILE__)).'/preload.php'); + // define the include path if(!defined('DOKU_INC')) define('DOKU_INC',fullpath(dirname(__FILE__).'/../').'/');