Changeset 2435

Show
Ignore:
Timestamp:
09/03/08 04:41:03 (3 months ago)
Author:
ringmaster
Message:

Add an option for the number of posts to appear in a feed. Thanks, mikelietz. Fixes #628.

Location:
trunk/htdocs/system/classes
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • trunk/htdocs/system/classes/adminhandler.php

    r2433 r2435  
    160160            'pagination' => array( 
    161161                'label' => _t('Items per Page'), 
     162                'type' => 'text', 
     163                'helptext' => '', 
     164                ), 
     165            'atom_entries' => array( 
     166                'label' => _t('Entries to show in Atom feed'), 
    162167                'type' => 'text', 
    163168                'helptext' => '', 
  • trunk/htdocs/system/classes/atomhandler.php

    r2418 r2435  
    634634        $params['status'] = Post::status('published'); 
    635635        $params['orderby'] = 'updated DESC'; 
     636        $params['limit'] = Options::get( 'atom_entries' ); 
    636637 
    637638        $params= array_merge( $params, $rr_args ); 
  • trunk/htdocs/system/classes/installhandler.php

    r2296 r2435  
    553553        Options::set('base_url', substr($_SERVER['REQUEST_URI'], 0, strrpos($_SERVER['REQUEST_URI'], '/') + 1)); 
    554554        Options::set('pagination', '5'); 
     555        Options::set('atom_entries', '5'); 
    555556        Options::set( 'theme_name', 'k2' ); 
    556557        Options::set( 'theme_dir' , 'k2' );