Fixed variable name conflict.

git-svn-id: http://svn.automattic.com/wordpress/trunk@182 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
saxmatt 2003-06-07 04:23:09 +00:00
parent 94dc7e0391
commit 6e08cdf772
1 changed files with 6 additions and 6 deletions

View File

@ -58,9 +58,9 @@ $distinct = '';
if ($pagenow != 'b2edit.php') { timer_start(); } if ($pagenow != 'b2edit.php') { timer_start(); }
if ($posts) { if ($showposts) {
$posts = (int)$posts; $showposts = (int)$showposts;
$posts_per_page=$posts; $posts_per_page = $showposts;
} }
// if a month is specified in the querystring, load that month // if a month is specified in the querystring, load that month
if ($m != '') { if ($m != '') {
@ -197,12 +197,12 @@ if ( !empty($postend) && ($postend > $poststart) && (!$m) &&(!$w) && (!$whichcat
if ($what_to_show == 'posts' || ($what_to_show == 'paged' && (!$paged))) { if ($what_to_show == 'posts' || ($what_to_show == 'paged' && (!$paged))) {
$poststart = intval($poststart); $poststart = intval($poststart);
$postend = intval($postend); $postend = intval($postend);
$posts = $postend - $poststart; $limposts = $postend - $poststart;
$limits = ' LIMIT '.$poststart.','.$posts; $limits = ' LIMIT '.$poststart.','.$limposts;
} elseif ($what_to_show == 'days') { } elseif ($what_to_show == 'days') {
$poststart = intval($poststart); $poststart = intval($poststart);
$postend = intval($postend); $postend = intval($postend);
$posts = $postend - $poststart; $limposts = $postend - $poststart;
$lastpostdate = get_lastpostdate(); $lastpostdate = get_lastpostdate();
$lastpostdate = mysql2date('Y-m-d 00:00:00',$lastpostdate); $lastpostdate = mysql2date('Y-m-d 00:00:00',$lastpostdate);
$lastpostdate = mysql2date('U',$lastpostdate); $lastpostdate = mysql2date('U',$lastpostdate);