diff options
| author | Uwe Tews <uwe.tews@googlemail.com> | 2015-07-06 03:25:03 +0200 |
|---|---|---|
| committer | Uwe Tews <uwe.tews@googlemail.com> | 2015-07-06 03:25:03 +0200 |
| commit | b1fdc085e7401edf8c33ac2f2a7d7183e12cc764 (patch) | |
| tree | de51efc0c3d3e8b269adab9969c419bf778c16f8 /libs/sysplugins/smarty_internal_config_file_compiler.php | |
| parent | b198e6488c3d80e4d990deb08f61c23946fe02b6 (diff) | |
| download | smarty-b1fdc085e7401edf8c33ac2f2a7d7183e12cc764.tar.gz smarty-b1fdc085e7401edf8c33ac2f2a7d7183e12cc764.tar.bz2 smarty-b1fdc085e7401edf8c33ac2f2a7d7183e12cc764.zip | |
- optimization get rid of __get and __set in source object
Diffstat (limited to 'libs/sysplugins/smarty_internal_config_file_compiler.php')
| -rw-r--r-- | libs/sysplugins/smarty_internal_config_file_compiler.php | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/libs/sysplugins/smarty_internal_config_file_compiler.php b/libs/sysplugins/smarty_internal_config_file_compiler.php index 397cac55..fbde96e1 100644 --- a/libs/sysplugins/smarty_internal_config_file_compiler.php +++ b/libs/sysplugins/smarty_internal_config_file_compiler.php @@ -101,15 +101,11 @@ class Smarty_Internal_Config_File_Compiler { $this->template = $template; $this->template->properties['file_dependency'][$this->template->source->uid] = array($this->template->source->name, $this->template->source->getTimeStamp(), $this->template->source->type); - // on empty config just return - if ($template->source->content == '') { - return true; - } if ($this->smarty->debugging) { Smarty_Internal_Debug::start_compile($this->template); } // init the lexer/parser to compile the config file - $lex = new $this->lexer_class(str_replace(array("\r\n", "\r"), "\n", $template->source->content) . "\n", $this); + $lex = new $this->lexer_class(str_replace(array("\r\n", "\r"), "\n", $template->source->getContent()) . "\n", $this); $parser = new $this->parser_class($lex, $this); if (function_exists('mb_internal_encoding') && ((int) ini_get('mbstring.func_overload')) & 2) { |
