mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-05 02:44:27 +02:00
fixed typo in error-messages
This commit is contained in:
@@ -441,7 +441,7 @@ class Smarty_Compiler extends Smarty {
|
|||||||
case 'else':
|
case 'else':
|
||||||
list($_open_tag) = end($this->_tag_stack);
|
list($_open_tag) = end($this->_tag_stack);
|
||||||
if ($_open_tag != 'if' && $_open_tag != 'elseif')
|
if ($_open_tag != 'if' && $_open_tag != 'elseif')
|
||||||
$this->_syntax_error('unxepected {else}', E_USER_ERROR, __FILE__, __LINE__);
|
$this->_syntax_error('unexpected {else}', E_USER_ERROR, __FILE__, __LINE__);
|
||||||
else
|
else
|
||||||
$this->_push_tag('else');
|
$this->_push_tag('else');
|
||||||
return '<?php else: ?>';
|
return '<?php else: ?>';
|
||||||
@@ -449,7 +449,7 @@ class Smarty_Compiler extends Smarty {
|
|||||||
case 'elseif':
|
case 'elseif':
|
||||||
list($_open_tag) = end($this->_tag_stack);
|
list($_open_tag) = end($this->_tag_stack);
|
||||||
if ($_open_tag != 'if' && $_open_tag != 'elseif')
|
if ($_open_tag != 'if' && $_open_tag != 'elseif')
|
||||||
$this->_syntax_error('unxepected {elseif}', E_USER_ERROR, __FILE__, __LINE__);
|
$this->_syntax_error('unexpected {elseif}', E_USER_ERROR, __FILE__, __LINE__);
|
||||||
if ($_open_tag == 'if')
|
if ($_open_tag == 'if')
|
||||||
$this->_push_tag('elseif');
|
$this->_push_tag('elseif');
|
||||||
return $this->_compile_if_tag($tag_args, true);
|
return $this->_compile_if_tag($tag_args, true);
|
||||||
|
Reference in New Issue
Block a user