mirror of
https://github.com/smarty-php/smarty.git
synced 2026-05-05 12:14:12 +02:00
- load seldom used Smarty API methods dynamically to reduce memory footprint
This commit is contained in:
@@ -2093,13 +2093,13 @@ class Smarty_Internal_Templateparser
|
||||
#line 879 "../smarty/lexer/smarty_internal_templateparser.y"
|
||||
function yy_r116()
|
||||
{
|
||||
$this->_retvalue = '$_smarty_tpl->getConfigVariable( \'' . $this->yystack[$this->yyidx + - 1]->minor . '\')';
|
||||
$this->_retvalue = '$_smarty_tpl->_getConfigVariable( \'' . $this->yystack[$this->yyidx + - 1]->minor . '\')';
|
||||
}
|
||||
|
||||
#line 883 "../smarty/lexer/smarty_internal_templateparser.y"
|
||||
function yy_r117()
|
||||
{
|
||||
$this->_retvalue = '(is_array($tmp = $_smarty_tpl->getConfigVariable( \'' .
|
||||
$this->_retvalue = '(is_array($tmp = $_smarty_tpl->_getConfigVariable( \'' .
|
||||
$this->yystack[$this->yyidx + - 2]->minor . '\')) ? $tmp' . $this->yystack[$this->yyidx + 0]->minor .
|
||||
' :null)';
|
||||
}
|
||||
@@ -2107,13 +2107,13 @@ class Smarty_Internal_Templateparser
|
||||
#line 887 "../smarty/lexer/smarty_internal_templateparser.y"
|
||||
function yy_r118()
|
||||
{
|
||||
$this->_retvalue = '$_smarty_tpl->getConfigVariable( ' . $this->yystack[$this->yyidx + - 1]->minor . ')';
|
||||
$this->_retvalue = '$_smarty_tpl->_getConfigVariable( ' . $this->yystack[$this->yyidx + - 1]->minor . ')';
|
||||
}
|
||||
|
||||
#line 891 "../smarty/lexer/smarty_internal_templateparser.y"
|
||||
function yy_r119()
|
||||
{
|
||||
$this->_retvalue = '(is_array($tmp = $_smarty_tpl->getConfigVariable( ' .
|
||||
$this->_retvalue = '(is_array($tmp = $_smarty_tpl->_getConfigVariable( ' .
|
||||
$this->yystack[$this->yyidx + - 2]->minor . ')) ? $tmp' . $this->yystack[$this->yyidx + 0]->minor .
|
||||
' : null)';
|
||||
}
|
||||
@@ -2332,7 +2332,7 @@ class Smarty_Internal_Templateparser
|
||||
$this->compiler->trigger_template_error('Illegal number of paramer in "isset()"');
|
||||
}
|
||||
$par = implode(',', $this->yystack[$this->yyidx + - 1]->minor);
|
||||
if (strncasecmp($par, '$_smarty_tpl->getConfigVariable', strlen('$_smarty_tpl->getConfigVariable')) ===
|
||||
if (strncasecmp($par, '$_smarty_tpl->_getConfigVariable', strlen('$_smarty_tpl->_getConfigVariable')) ===
|
||||
0
|
||||
) {
|
||||
self::$prefix_number ++;
|
||||
|
||||
Reference in New Issue
Block a user