mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-04 10:24:26 +02:00
- 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:
@@ -1,4 +1,7 @@
|
|||||||
===== 3.1.30-dev ===== (xx.xx.xx)
|
===== 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
|
21.12.2015
|
||||||
- bugfix a filepath starting with '/' or '\' on windows should normalize to the root dir
|
- 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
|
of current working drive https://github.com/smarty-php/smarty/issues/134
|
||||||
|
@@ -118,7 +118,7 @@ class Smarty extends Smarty_Internal_TemplateBase
|
|||||||
/**
|
/**
|
||||||
* smarty version
|
* smarty version
|
||||||
*/
|
*/
|
||||||
const SMARTY_VERSION = '3.1.30-dev/3';
|
const SMARTY_VERSION = '3.1.30-dev/4';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* define variable scopes
|
* define variable scopes
|
||||||
@@ -288,7 +288,7 @@ class Smarty extends Smarty_Internal_TemplateBase
|
|||||||
*
|
*
|
||||||
* @var array
|
* @var array
|
||||||
*/
|
*/
|
||||||
private $template_dir = array('./templates/');
|
protected $template_dir = array('./templates/');
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* joined template directory string used in cache keys
|
* joined template directory string used in cache keys
|
||||||
@@ -330,28 +330,28 @@ class Smarty extends Smarty_Internal_TemplateBase
|
|||||||
*
|
*
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
private $compile_dir = './templates_c/';
|
protected $compile_dir = './templates_c/';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* plugins directory
|
* plugins directory
|
||||||
*
|
*
|
||||||
* @var array
|
* @var array
|
||||||
*/
|
*/
|
||||||
private $plugins_dir = null;
|
protected $plugins_dir = null;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* cache directory
|
* cache directory
|
||||||
*
|
*
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
private $cache_dir = './cache/';
|
protected $cache_dir = './cache/';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* config directory
|
* config directory
|
||||||
*
|
*
|
||||||
* @var array
|
* @var array
|
||||||
*/
|
*/
|
||||||
private $config_dir = array('./configs/');
|
protected $config_dir = array('./configs/');
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* force template compiling?
|
* force template compiling?
|
||||||
|
Reference in New Issue
Block a user