- change $xxx_dir properties from private to protected in case Smarty class gets extended.

Properties like $template_dir must never be accessed directly or overloaded by a user class. Use getter/setter methods like setTemplateDir()
This commit is contained in:
uwetews
2015-12-22 01:21:35 +01:00
parent a8f8efd4b4
commit 136e94ae74
2 changed files with 9 additions and 6 deletions

View File

@@ -1,4 +1,7 @@
 ===== 3.1.30-dev ===== (xx.xx.xx)
22.12.2015
- change $xxx_dir properties from private to protected in case Smarty class gets extended
21.12.2015
- bugfix a filepath starting with '/' or '\' on windows should normalize to the root dir
of current working drive https://github.com/smarty-php/smarty/issues/134

View File

@@ -118,7 +118,7 @@ class Smarty extends Smarty_Internal_TemplateBase
/**
* smarty version
*/
const SMARTY_VERSION = '3.1.30-dev/3';
const SMARTY_VERSION = '3.1.30-dev/4';
/**
* define variable scopes
@@ -288,7 +288,7 @@ class Smarty extends Smarty_Internal_TemplateBase
*
* @var array
*/
private $template_dir = array('./templates/');
protected $template_dir = array('./templates/');
/**
* joined template directory string used in cache keys
@@ -330,28 +330,28 @@ class Smarty extends Smarty_Internal_TemplateBase
*
* @var string
*/
private $compile_dir = './templates_c/';
protected $compile_dir = './templates_c/';
/**
* plugins directory
*
* @var array
*/
private $plugins_dir = null;
protected $plugins_dir = null;
/**
* cache directory
*
* @var string
*/
private $cache_dir = './cache/';
protected $cache_dir = './cache/';
/**
* config directory
*
* @var array
*/
private $config_dir = array('./configs/');
protected $config_dir = array('./configs/');
/**
* force template compiling?