summaryrefslogtreecommitdiff
path: root/inc/init.php
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2012-01-30 20:38:41 +0100
committerAndreas Gohr <andi@splitbrain.org>2012-01-30 20:38:41 +0100
commitc4766956646b53ab644ec6ddbd17d9cba07cf872 (patch)
tree9162023353305dc55770c05b0e3d094e1b4a2eaf /inc/init.php
parent378325f948e677b0253c6dc5e268aa753d3a10f1 (diff)
downloadrpg-c4766956646b53ab644ec6ddbd17d9cba07cf872.tar.gz
rpg-c4766956646b53ab644ec6ddbd17d9cba07cf872.tar.bz2
DOKU_TPL* considered harmful
Some plugins want to dynamically switch the template based on users, namspaces or the phase of the moon. Having fixed paths in a unchangable constant prevents this. This changes deprecates the DOKU_TPL* constants in favor of two new tpl_* functions that return the correct paths based on the $conf variables which can be changed from the DOKUWIKI_STARTED event.
Diffstat (limited to 'inc/init.php')
-rw-r--r--inc/init.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/inc/init.php b/inc/init.php
index 14660b8d0..3aab0587b 100644
--- a/inc/init.php
+++ b/inc/init.php
@@ -118,11 +118,11 @@ if (!defined('DOKU_COOKIE')) define('DOKU_COOKIE', 'DW'.md5(DOKU_REL.(($conf['se
// define main script
if(!defined('DOKU_SCRIPT')) define('DOKU_SCRIPT','doku.php');
-// define Template baseURL
+// DEPRECATED, use tpl_basedir() instead
if(!defined('DOKU_TPL')) define('DOKU_TPL',
DOKU_BASE.'lib/tpl/'.$conf['template'].'/');
-// define real Template directory
+// DEPRECATED, use tpl_incdir() instead
if(!defined('DOKU_TPLINC')) define('DOKU_TPLINC',
DOKU_INC.'lib/tpl/'.$conf['template'].'/');