com web/news: * Increase the number of mails shown from 20 to 50 per page: group.php

From: Date: Wed, 27 Feb 2013 18:49:01 +0000
Subject: com web/news: * Increase the number of mails shown from 20 to 50 per page: group.php
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-15573@lists.php.net to get a copy of this message
Commit: 074d9b65fb987b9d2cb27da52eccf8fa0e74f85b Author: Kalle Sommer Nielsen <kalle@php.net> 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']);

« previous php.webmaster (#15573) next »