mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-04 10:24:26 +02:00
removed SMARTY_DIR setting in constructor
This commit is contained in:
@@ -214,19 +214,7 @@ class Smarty
|
|||||||
Purpose: Constructor
|
Purpose: Constructor
|
||||||
\*======================================================================*/
|
\*======================================================================*/
|
||||||
function Smarty()
|
function Smarty()
|
||||||
{
|
{
|
||||||
if(SMARTY_DIR != '') {
|
|
||||||
$this->template_dir = SMARTY_DIR.$this->template_dir;
|
|
||||||
$this->config_dir = SMARTY_DIR.$this->config_dir;
|
|
||||||
$this->compile_dir = SMARTY_DIR.$this->compile_dir;
|
|
||||||
$this->cache_dir = SMARTY_DIR.$this->cache_dir;
|
|
||||||
$this->trusted_dir = SMARTY_DIR.$this->trusted_dir;
|
|
||||||
|
|
||||||
for ($x=0; $x < count($this->secure_dir); $x++) {
|
|
||||||
$this->secure_dir[$x] = SMARTY_DIR.$this->secure_dir[$x];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
foreach ($this->global_assign as $key => $var_name) {
|
foreach ($this->global_assign as $key => $var_name) {
|
||||||
if (is_array($var_name)) {
|
if (is_array($var_name)) {
|
||||||
foreach ($var_name as $var) {
|
foreach ($var_name as $var) {
|
||||||
|
@@ -214,19 +214,7 @@ class Smarty
|
|||||||
Purpose: Constructor
|
Purpose: Constructor
|
||||||
\*======================================================================*/
|
\*======================================================================*/
|
||||||
function Smarty()
|
function Smarty()
|
||||||
{
|
{
|
||||||
if(SMARTY_DIR != '') {
|
|
||||||
$this->template_dir = SMARTY_DIR.$this->template_dir;
|
|
||||||
$this->config_dir = SMARTY_DIR.$this->config_dir;
|
|
||||||
$this->compile_dir = SMARTY_DIR.$this->compile_dir;
|
|
||||||
$this->cache_dir = SMARTY_DIR.$this->cache_dir;
|
|
||||||
$this->trusted_dir = SMARTY_DIR.$this->trusted_dir;
|
|
||||||
|
|
||||||
for ($x=0; $x < count($this->secure_dir); $x++) {
|
|
||||||
$this->secure_dir[$x] = SMARTY_DIR.$this->secure_dir[$x];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
foreach ($this->global_assign as $key => $var_name) {
|
foreach ($this->global_assign as $key => $var_name) {
|
||||||
if (is_array($var_name)) {
|
if (is_array($var_name)) {
|
||||||
foreach ($var_name as $var) {
|
foreach ($var_name as $var) {
|
||||||
|
Reference in New Issue
Block a user