diff options
author | Andreas Gohr <andi@splitbrain.org> | 2008-10-12 13:31:50 +0200 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2008-10-12 13:31:50 +0200 |
commit | 066fee3089513b988d1beac2040e32a365921310 (patch) | |
tree | e20413f725f57ec6071c66b745fc25bea2e08b55 /inc/init.php | |
parent | 7aedde2e62651d550e6213d3852447b26255e8de (diff) | |
download | rpg-066fee3089513b988d1beac2040e32a365921310.tar.gz rpg-066fee3089513b988d1beac2040e32a365921310.tar.bz2 |
Make license selectable from config FS#312
darcs-hash:20081012113150-7ad00-6408da058bdb6c923159d445e03b76f54b579362.gz
Diffstat (limited to 'inc/init.php')
-rw-r--r-- | inc/init.php | 10 |
1 files changed, 10 insertions, 0 deletions
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)); |