Skip to content

Commit

Permalink
💡 Better deprecation annotation for DOKU_TPL*
Browse files Browse the repository at this point in the history
This syntax can be used by IDEA and other IDEs to mark the constants as
deprecated in the editor.
  • Loading branch information
micgro42 committed Oct 8, 2018
1 parent 63ed395 commit c163dbe
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions inc/init.php
Expand Up @@ -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', '&');
Expand Down

0 comments on commit c163dbe

Please sign in to comment.