Update of /cvsroot/php-blog/serendipity
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20398
Modified Files:
index.php
Log Message:
fix remaining pagination oddity (right, tom?)
Index: index.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/index.php,v
retrieving revision 1.64
retrieving revision 1.65
diff -u -d -r1.64 -r1.65
--- index.php 13 Dec 2004 12:28:45 -0000 1.64
+++ index.php 16 Dec 2004 15:10:35 -0000 1.65
@@ -94,6 +94,10 @@
/* We must always *assume* that Year, Month and Day are the first 3 arguments */
list(,$year, $month, $day) = $_args;
+ if (isset($serendipity['GET']['page']) && !isset($year, $month, $day)) {
+ $pagination_only = true;
+ }
+
$_GET['serendipity']['action'] = 'read';
$_GET['serendipity']['hidefooter'] = true;
@@ -123,7 +127,9 @@
}
$serendipity['range'] = array($ts, $te);
- $serendipity['head_subtitle'] = sprintf(ENTRIES_FOR, $date);
+ if (!isset($pagination_only)) {
+ $serendipity['head_subtitle'] = sprintf(ENTRIES_FOR, $date);
+ }
ob_start();
include_once(S9Y_INCLUDE_PATH . 'include/genpage.inc.php');
|