From 066fee3089513b988d1beac2040e32a365921310 Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Sun, 12 Oct 2008 13:31:50 +0200 Subject: Make license selectable from config FS#312 darcs-hash:20081012113150-7ad00-6408da058bdb6c923159d445e03b76f54b579362.gz --- inc/init.php | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'inc/init.php') diff --git a/inc/init.php b/inc/init.php index 6c3f54e16..703fd4a38 100644 --- a/inc/init.php +++ b/inc/init.php @@ -60,6 +60,16 @@ require_once(DOKU_INC.'inc/lang/'.$conf['lang'].'/lang.php'); } + //prepare license array() + global $license; + $license = array(); + + // load the license file(s) + require_once(DOKU_CONF.'license.php'); + if(@file_exists(DOKU_CONF.'license.php')){ + require_once(DOKU_CONF.'license.php'); + } + // define baseURL if(!defined('DOKU_REL')) define('DOKU_REL',getBaseURL(false)); if(!defined('DOKU_URL')) define('DOKU_URL',getBaseURL(true)); -- cgit v1.2.3