Commit:    074d9b65fb987b9d2cb27da52eccf8fa0e74f85b
Author:    Kalle Sommer Nielsen <[email protected]>         Wed, 27 Feb 2013 
19:49:01 +0100
Parents:   e1dad11da254178cf862ec67aa64e922e4365267
Branches:  master

Link:       
http://git.php.net/?p=web/news.git;a=commitdiff;h=074d9b65fb987b9d2cb27da52eccf8fa0e74f85b

Log:
* Increase the number of mails shown from 20 to 50 per page

Changed paths:
  M  group.php


Diff:
diff --git a/group.php b/group.php
index 177c45a..ec6995a 100644
--- a/group.php
+++ b/group.php
@@ -42,11 +42,11 @@ $start = (isset($_GET['start']) ? (integer) $_GET['start'] 
: 0);
 
 list(, $first, $last) = explode(' ', $data);
 
-if (!$start || $start > ($last - 19) || $start < $first) {
-    $start = ($last - $first) > 19 ? $last - 19 : $first;
+if (!$start || $start > ($last - 49) || $start < $first) {
+    $start = ($last - $first) > 49 ? $last - 49 : $first;
 }
 
-$n = min($last, $start + 19);
+$n = min($last, $start + 49);
 
 if (!$nntp->command('XOVER ' . $start . '-' . $n, 224)) {
     error($lang['groups_error_xover']);


--
PHP Webmaster List Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to