mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-04 02:14:26 +02:00
fix 304 Not Modified, don't send content
This commit is contained in:
6
NEWS
6
NEWS
@@ -1,5 +1,7 @@
|
||||
- fixed cycle function to respect delimiter setting
|
||||
after initial setting (Monte)
|
||||
- fixed bug with 304 Not Modified response sending
|
||||
content (Monte)
|
||||
- fixed cycle function to respect delimiter after
|
||||
initial setting (Monte)
|
||||
- update $GLOBALS references to work properly with
|
||||
track_globals settings (Michal Prinke, Monte)
|
||||
- fixed bug in math function with call to assign
|
||||
|
@@ -607,9 +607,9 @@ class Smarty
|
||||
header("HTTP/1.1 304 Not Modified");
|
||||
} else {
|
||||
header("Last-Modified: ".$gmt_mtime);
|
||||
echo $_smarty_results;
|
||||
}
|
||||
}
|
||||
echo $_smarty_results;
|
||||
error_reporting($_smarty_old_error_level);
|
||||
return true;
|
||||
} else {
|
||||
|
@@ -3729,7 +3729,7 @@ OUTPUT:
|
||||
variables used in the equation are passed as parameters, which can
|
||||
be template variables or static values. +, -, /, *, abs, ceil, cos,
|
||||
exp, floor, log, log10, max, min, pi, pow, rand, round, sin, sqrt,
|
||||
srans and tan are all valid operators. Check the PHP documenation
|
||||
srans and tan are all valid operators. Check the PHP documentation
|
||||
for further information on these math functions.
|
||||
</para>
|
||||
<para>
|
||||
|
@@ -607,9 +607,9 @@ class Smarty
|
||||
header("HTTP/1.1 304 Not Modified");
|
||||
} else {
|
||||
header("Last-Modified: ".$gmt_mtime);
|
||||
echo $_smarty_results;
|
||||
}
|
||||
}
|
||||
echo $_smarty_results;
|
||||
error_reporting($_smarty_old_error_level);
|
||||
return true;
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user