mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-04 10:24: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
|
- fixed bug with 304 Not Modified response sending
|
||||||
after initial setting (Monte)
|
content (Monte)
|
||||||
|
- fixed cycle function to respect delimiter after
|
||||||
|
initial setting (Monte)
|
||||||
- update $GLOBALS references to work properly with
|
- update $GLOBALS references to work properly with
|
||||||
track_globals settings (Michal Prinke, Monte)
|
track_globals settings (Michal Prinke, Monte)
|
||||||
- fixed bug in math function with call to assign
|
- fixed bug in math function with call to assign
|
||||||
|
@@ -607,9 +607,9 @@ class Smarty
|
|||||||
header("HTTP/1.1 304 Not Modified");
|
header("HTTP/1.1 304 Not Modified");
|
||||||
} else {
|
} else {
|
||||||
header("Last-Modified: ".$gmt_mtime);
|
header("Last-Modified: ".$gmt_mtime);
|
||||||
}
|
|
||||||
}
|
|
||||||
echo $_smarty_results;
|
echo $_smarty_results;
|
||||||
|
}
|
||||||
|
}
|
||||||
error_reporting($_smarty_old_error_level);
|
error_reporting($_smarty_old_error_level);
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
|
@@ -3729,7 +3729,7 @@ OUTPUT:
|
|||||||
variables used in the equation are passed as parameters, which can
|
variables used in the equation are passed as parameters, which can
|
||||||
be template variables or static values. +, -, /, *, abs, ceil, cos,
|
be template variables or static values. +, -, /, *, abs, ceil, cos,
|
||||||
exp, floor, log, log10, max, min, pi, pow, rand, round, sin, sqrt,
|
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.
|
for further information on these math functions.
|
||||||
</para>
|
</para>
|
||||||
<para>
|
<para>
|
||||||
|
@@ -607,9 +607,9 @@ class Smarty
|
|||||||
header("HTTP/1.1 304 Not Modified");
|
header("HTTP/1.1 304 Not Modified");
|
||||||
} else {
|
} else {
|
||||||
header("Last-Modified: ".$gmt_mtime);
|
header("Last-Modified: ".$gmt_mtime);
|
||||||
}
|
|
||||||
}
|
|
||||||
echo $_smarty_results;
|
echo $_smarty_results;
|
||||||
|
}
|
||||||
|
}
|
||||||
error_reporting($_smarty_old_error_level);
|
error_reporting($_smarty_old_error_level);
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user