Permalink
Browse files

💡 Better deprecation annotation for DOKU_TPL*

This syntax can be used by IDEA and other IDEs to mark the constants as
deprecated in the editor.
  • Loading branch information...
Michael Große
Michael Große committed Oct 8, 2018
1 parent 63ed395 commit c163dbef86cf8fa975012c52ca572a24f01b85fb
Showing with 14 additions and 6 deletions.
  1. +14 −6 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', '&');

0 comments on commit c163dbe

Please sign in to comment.