From e7cb32dcb57d3ae03544db66367d6aaa02f7ddf8 Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Fri, 29 Jul 2005 17:54:57 +0200 Subject: DOKU_CONF define for config directory #479 darcs-hash:20050729155457-7ad00-94554865259e4cbd6a1c75bb62a93f37304adbf0.gz --- inc/init.php | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'inc/init.php') diff --git a/inc/init.php b/inc/init.php index 370e308b7..4e59cdbe1 100644 --- a/inc/init.php +++ b/inc/init.php @@ -6,6 +6,9 @@ // define the include path if(!defined('DOKU_INC')) define('DOKU_INC',realpath(dirname(__FILE__).'/../').'/'); + // define config path (packagers may want to change this to /etc/dokuwiki/) + if(!defined('DOKU_CONF')) define('DOKU_CONF',DOKU_INC.'/conf/'); + // set up error reporting to sane values error_reporting(E_ALL ^ E_NOTICE); @@ -14,8 +17,8 @@ $conf = array(); // load the config file(s) - require_once(DOKU_INC.'conf/dokuwiki.php'); - @include_once(DOKU_INC.'conf/local.php'); + require_once(DOKU_CONF.'dokuwiki.php'); + @include_once(DOKU_CONF.'local.php'); //prepare language array global $lang; @@ -70,8 +73,8 @@ init_paths(); // automatic upgrade to script versions of certain files - scriptify(DOKU_INC.'conf/users.auth'); - scriptify(DOKU_INC.'conf/acl.auth'); + scriptify(DOKU_CONF.'users.auth'); + scriptify(DOKU_CONF.'acl.auth'); /** -- cgit v1.2.3