diff options
| author | Max Kremmel <xing@synapse.plus.com> | 2007-03-07 18:48:45 +0000 |
|---|---|---|
| committer | Max Kremmel <xing@synapse.plus.com> | 2007-03-07 18:48:45 +0000 |
| commit | 7fc8bb82bebe5f67118c400bd17b4e32b151a13b (patch) | |
| tree | 6c5815905d258b27b33710c1f27edd2ab8217875 /wiki_rss.php | |
| parent | 97b3624dc99379a984314bf2f0c15d1aaa6a3819 (diff) | |
| download | wiki-7fc8bb82bebe5f67118c400bd17b4e32b151a13b.tar.gz wiki-7fc8bb82bebe5f67118c400bd17b4e32b151a13b.tar.bz2 wiki-7fc8bb82bebe5f67118c400bd17b4e32b151a13b.zip | |
modernise BitPage::getList() - lots of code changes so we need to keep an eye on this for a while.
Diffstat (limited to 'wiki_rss.php')
| -rw-r--r-- | wiki_rss.php | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/wiki_rss.php b/wiki_rss.php index 7f8ae00..2229c27 100644 --- a/wiki_rss.php +++ b/wiki_rss.php @@ -1,6 +1,6 @@ <?php /** - * @version $Header: /cvsroot/bitweaver/_bit_wiki/wiki_rss.php,v 1.15 2007/01/07 10:48:33 squareing Exp $ + * @version $Header: /cvsroot/bitweaver/_bit_wiki/wiki_rss.php,v 1.16 2007/03/07 18:48:45 squareing Exp $ * @package wiki * @subpackage functions */ @@ -29,8 +29,12 @@ if( !$gBitUser->hasPermission( 'p_wiki_view_page' ) ) { $rss->useCached( $rss_version_name, $cacheFile, $gBitSystem->getConfig( 'rssfeed_cache_time' )); $wiki = new BitPage(); - $feeds = $wiki->getList( 0, $gBitSystem->getConfig( 'wiki_rss_max_records', 10 ), 'last_modified_desc', NULL, NULL, FALSE, FALSE, TRUE ); - $feeds = $feeds['data']; + $listHash = array( + 'max_records' => $gBitSystem->getConfig( 'wiki_rss_max_records', 10 ), + 'sort_mode' => 'last_modified_desc', + 'get_data' => TRUE, + ); + $feeds = $wiki->getList( $listHash ); // set the rss link $rss->link = 'http://'.$_SERVER['HTTP_HOST'].WIKI_PKG_URL; |
