fixes in source files

This commit is contained in:
Simon Wisselink
2023-01-24 16:05:38 +01:00
parent f53eb27450
commit 0e380a1748
2 changed files with 3 additions and 3 deletions

View File

@@ -233,7 +233,7 @@ class TemplateLexer
$this->counter += strlen($match[0]); $this->counter += strlen($match[0]);
} }
$this->line = 1; $this->line = 1;
$this->smarty = $compiler->template->smarty; $this->smarty = $compiler->getTemplate()->getSmarty();
$this->compiler = $compiler; $this->compiler = $compiler;
$this->compiler->initDelimiterPreg(); $this->compiler->initDelimiterPreg();
$this->smarty_token_names['LDEL'] = $this->smarty->getLeftDelimiter(); $this->smarty_token_names['LDEL'] = $this->smarty->getLeftDelimiter();

View File

@@ -13,7 +13,7 @@
namespace Smarty\Parser; namespace Smarty\Parser;
use \Smarty\Lexer\Configfile as Lexer; use \Smarty\Lexer\ConfigfileLexer as Lexer;
use \Smarty\Compiler\Configfile as Configfile; use \Smarty\Compiler\Configfile as Configfile;
/** /**
@@ -98,7 +98,7 @@ class ConfigfileParser
public function __construct(Lexer $lex, Configfile $compiler) public function __construct(Lexer $lex, Configfile $compiler)
{ {
$this->lex = $lex; $this->lex = $lex;
$this->smarty = $compiler->smarty; $this->smarty = $compiler->getSmarty();
$this->compiler = $compiler; $this->compiler = $compiler;
$this->configOverwrite = $this->smarty->config_overwrite; $this->configOverwrite = $this->smarty->config_overwrite;
$this->configReadHidden = $this->smarty->config_read_hidden; $this->configReadHidden = $this->smarty->config_read_hidden;