mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-04 10:24:26 +02:00
ignore case in IF statements
This commit is contained in:
1
NEWS
1
NEWS
@@ -1,3 +1,4 @@
|
||||
- ignore case in IF statements (Rainer Collet, Monte)
|
||||
- treat undefined constants as null (Ferdinand Beyer, Monte)
|
||||
- fix problem with inserts and nested fetches
|
||||
(Rainer Collet, Monte)
|
||||
|
@@ -1103,7 +1103,7 @@ class Smarty_Compiler extends Smarty {
|
||||
|
||||
$token = &$tokens[$i];
|
||||
|
||||
switch ($token) {
|
||||
switch (strtolower($token)) {
|
||||
case '!':
|
||||
case '%':
|
||||
case '!==':
|
||||
|
@@ -1103,7 +1103,7 @@ class Smarty_Compiler extends Smarty {
|
||||
|
||||
$token = &$tokens[$i];
|
||||
|
||||
switch ($token) {
|
||||
switch (strtolower($token)) {
|
||||
case '!':
|
||||
case '%':
|
||||
case '!==':
|
||||
|
Reference in New Issue
Block a user