fix 304 Not Modified, don't send content

This commit is contained in:
mohrt
2002-06-05 13:17:18 +00:00
parent 6a132b412a
commit e80077841c
4 changed files with 7 additions and 5 deletions

6
NEWS
View File

@@ -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

View File

@@ -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 {

View File

@@ -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>

View File

@@ -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 {