Update of /cvsroot/php-blog/serendipity
In directory sc8-pr-cvs1:/tmp/cvs-serv5571
Modified Files:
serendipity_functions.inc.php
Log Message:
Avoid removing static files if pregenerate is not set.
Patch by Joyce P., simplified by Tom S.
Index: serendipity_functions.inc.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/serendipity_functions.inc.php,v
retrieving revision 1.62
retrieving revision 1.63
diff -u -d -r1.62 -r1.63
--- serendipity_functions.inc.php 12 Jun 2003 12:14:59 -0000 1.62
+++ serendipity_functions.inc.php 14 Jun 2003 03:14:24 -0000 1.63
@@ -712,6 +712,11 @@
{
global $serendipity;
+ // If pregenerate is not set, short circuit all this logic
+ // and remove nothing.
+ if(!$serendipity['pregenerate']) {
+ return;
+ }
if (isset($timestamp)) {
$dated = date("Ymd", $timestamp);
$datem = date("Ym", $timestamp);
|