From c163dbef86cf8fa975012c52ca572a24f01b85fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Gro=C3=9Fe?= Date: Mon, 8 Oct 2018 16:02:38 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=A1=20Better=20deprecation=20annotatio?= =?UTF-8?q?n=20for=20DOKU=5FTPL*?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This syntax can be used by IDEA and other IDEs to mark the constants as deprecated in the editor. --- inc/init.php | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/inc/init.php b/inc/init.php index d3b203ef61..b3df5aaaad 100644 --- a/inc/init.php +++ b/inc/init.php @@ -114,13 +114,21 @@ function delta_time($start=0) { // define main script if(!defined('DOKU_SCRIPT')) define('DOKU_SCRIPT','doku.php'); -// DEPRECATED, use tpl_basedir() instead -if(!defined('DOKU_TPL')) define('DOKU_TPL', - DOKU_BASE.'lib/tpl/'.$conf['template'].'/'); +if(!defined('DOKU_TPL')) { + /** + * @deprecated 2012-10-13 replaced by more dynamic method + * @see tpl_basedir() + */ + define('DOKU_TPL', DOKU_BASE.'lib/tpl/'.$conf['template'].'/'); +} -// DEPRECATED, use tpl_incdir() instead -if(!defined('DOKU_TPLINC')) define('DOKU_TPLINC', - DOKU_INC.'lib/tpl/'.$conf['template'].'/'); +if(!defined('DOKU_TPLINC')) { + /** + * @deprecated 2012-10-13 replaced by more dynamic method + * @see tpl_incdir() + */ + define('DOKU_TPLINC', DOKU_INC.'lib/tpl/'.$conf['template'].'/'); +} // make session rewrites XHTML compliant @ini_set('arg_separator.output', '&');