From 0e380a17487f7804421805d9978b505e0f994d3d Mon Sep 17 00:00:00 2001 From: Simon Wisselink Date: Tue, 24 Jan 2023 16:05:38 +0100 Subject: [PATCH] fixes in source files --- src/Lexer/TemplateLexer.plex | 2 +- src/Parser/ConfigfileParser.y | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Lexer/TemplateLexer.plex b/src/Lexer/TemplateLexer.plex index 1614a24e..d29b6559 100644 --- a/src/Lexer/TemplateLexer.plex +++ b/src/Lexer/TemplateLexer.plex @@ -233,7 +233,7 @@ class TemplateLexer $this->counter += strlen($match[0]); } $this->line = 1; - $this->smarty = $compiler->template->smarty; + $this->smarty = $compiler->getTemplate()->getSmarty(); $this->compiler = $compiler; $this->compiler->initDelimiterPreg(); $this->smarty_token_names['LDEL'] = $this->smarty->getLeftDelimiter(); diff --git a/src/Parser/ConfigfileParser.y b/src/Parser/ConfigfileParser.y index 2f031323..23afc2d8 100644 --- a/src/Parser/ConfigfileParser.y +++ b/src/Parser/ConfigfileParser.y @@ -13,7 +13,7 @@ namespace Smarty\Parser; -use \Smarty\Lexer\Configfile as Lexer; +use \Smarty\Lexer\ConfigfileLexer as Lexer; use \Smarty\Compiler\Configfile as Configfile; /** @@ -98,7 +98,7 @@ class ConfigfileParser public function __construct(Lexer $lex, Configfile $compiler) { $this->lex = $lex; - $this->smarty = $compiler->smarty; + $this->smarty = $compiler->getSmarty(); $this->compiler = $compiler; $this->configOverwrite = $this->smarty->config_overwrite; $this->configReadHidden = $this->smarty->config_read_hidden;