Show
Ignore:
Timestamp:
02/03/08 14:43:25 (10 months ago)
Author:
cfriesen
Message:

Allow manual setting of output count by setting a GET variable

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/gregarius/feed.php

    r1714 r1780  
    3434define ('ACT_NAV_SUCC_POSTFIX',' →'); 
    3535 
    36  
    37  
    38  
    3936// Show unread items on the front page? 
    4037// default to the config value, user can override this via a cookie 
     
    261258    $iid = $cid  = null; 
    262259} 
    263  
    264  
    265  
    266260 
    267261// If we have no channel-id something went terribly wrong. 
     
    728722 
    729723function doItems($cids,$fid,$vfid,$title,$iid,$y,$m,$d,$nv,$show_what,$show_private) { 
    730  
    731724    $do_show=$show_what; 
    732725 
     
    762755        } 
    763756 
    764     $items = new PaginatedItemList(); 
     757        if(array_key_exists('count', $_GET) && !empty($_GET['count'])) { 
     758            $items = new PaginatedItemList($_GET['count']); 
     759        } else { 
     760            $items = new PaginatedItemList(); 
     761        } 
     762 
    765763    $severalFeeds = (($fid != null) || ($vfid != null)); 
    766764