WordPress.org

Make WordPress Core

Changeset 182 for trunk/blog.header.php


Ignore:
Timestamp:
06/07/03 04:23:09 (11 years ago)
Author:
saxmatt
Message:

Fixed variable name conflict.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/blog.header.php

    r153 r182  
    5959if ($pagenow != 'b2edit.php') { timer_start(); } 
    6060 
    61 if ($posts) { 
    62     $posts = (int)$posts; 
    63     $posts_per_page=$posts; 
     61if ($showposts) { 
     62    $showposts = (int)$showposts; 
     63    $posts_per_page = $showposts; 
    6464} 
    6565// if a month is specified in the querystring, load that month 
     
    198198        $poststart = intval($poststart); 
    199199        $postend = intval($postend); 
    200         $posts = $postend - $poststart; 
    201         $limits = ' LIMIT '.$poststart.','.$posts; 
     200        $limposts = $postend - $poststart; 
     201        $limits = ' LIMIT '.$poststart.','.$limposts; 
    202202    } elseif ($what_to_show == 'days') { 
    203203        $poststart = intval($poststart); 
    204204        $postend = intval($postend); 
    205         $posts = $postend - $poststart; 
     205        $limposts = $postend - $poststart; 
    206206        $lastpostdate = get_lastpostdate(); 
    207207        $lastpostdate = mysql2date('Y-m-d 00:00:00',$lastpostdate); 
Note: See TracChangeset for help on using the changeset viewer.