Make WordPress Core

Changeset 173


Ignore:
Timestamp:
06/05/2003 09:47:18 PM (23 years ago)
Author:
saxmatt
Message:

$post conflict.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/b2edit.showposts.php

    r149 r173  
    44require_once('../b2config.php');
    55
    6 if (!$posts) {
     6if (!$showposts) {
    77        if ($posts_per_page) {
    8                 $posts=$posts_per_page;
     8                $showposts=$posts_per_page;
    99        } else {
    10                 $posts=10;
    11                 $posts_per_page=$posts;
     10                $showposts=10;
     11                $posts_per_page=$showposts;
    1212        }
    1313}
    … …  
    2121if (!$poststart) {
    2222        $poststart=0;
    23         $postend=$posts;
     23        $postend=$showposts;
    2424}
    2525
    2626$nextXstart=$postend;
    27 $nextXend=$postend+$posts;
    28 
    29 $previousXstart=($poststart-$posts);
     27$nextXend=$postend+$showposts;
     28
     29$previousXstart=($poststart-$showposts);
    3030$previousXend=$poststart;
    3131if ($previousXstart < 0) {
    3232        $previousXstart=0;
    33         $previousXend=$posts;
     33        $previousXend=$showposts;
    3434}
    3535
    … …  
    5151              <input type="hidden" name="poststart" value="<?php echo $previousXstart; ?>" />
    5252              <input type="hidden" name="postend" value="<?php echo $previousXend; ?>" />
    53               <input type="submit" name="submitprevious" class="search" value="< <?php echo $posts ?>" />
     53              <input type="submit" name="submitprevious" class="search" value="< <?php echo $showposts ?>" />
    5454<?php
    5555}
    … …  
    6161              <input type="hidden" name="poststart" value="<?php echo $nextXstart; ?>" />
    6262              <input type="hidden" name="postend" value="<?php echo $nextXend; ?>" />
    63               <input type="submit" name="submitnext" class="search" value="<?php echo $posts ?> >" />
     63              <input type="submit" name="submitnext" class="search" value="<?php echo $showposts ?> >" />
    6464            </form>
    6565          </td>
    … …  
    7171    <td valign="top" width="200"><!-- show X first/last posts -->
    7272      <form name="showXfirstlastposts" method="get" action="">
    73         <input type="text" name="posts" value="<?php echo $posts ?>" style="width:40px;" /?>
     73        <input type="text" name="posts" value="<?php echo $showposts ?>" style="width:40px;" /?>
    7474<?php
    7575if (!isset($order))
    … …  
    337337              <input type="hidden" name="poststart" value="<?php echo $previousXstart; ?>" />
    338338              <input type="hidden" name="postend" value="<?php echo $previousXend; ?>" />
    339               <input type="submit" name="submitprevious" class="search" value="< Previous <?php echo $posts ?>" /><?php
     339              <input type="submit" name="submitprevious" class="search" value="< Previous <?php echo $showposts ?>" /><?php
    340340}
    341341?>
    … …  
    346346              <input type="hidden" name="poststart" value="<?php echo $nextXstart; ?>" />
    347347              <input type="hidden" name="postend" value="<?php echo $nextXend; ?>" />
    348               <input type="submit" name="submitnext" class="search" value="Next <?php echo $posts ?> >" />
     348              <input type="submit" name="submitnext" class="search" value="Next <?php echo $showposts ?> >" />
    349349            </form>
    350350          </td>
    … …  
    356356    <td valign="top" width="200"><!-- show X first/last posts -->
    357357      <form name="showXfirstlastposts" method="get">
    358         <input type="text" name="posts" value="<?php echo $posts ?>" style="width:40px;" /?>
     358        <input type="text" name="posts" value="<?php echo $showposts ?>" style="width:40px;" /?>
    359359        <select name="order">&nbsp;<option value="DESC" <?php
    360360$i = $order;
Note: See TracChangeset for help on using the changeset viewer.