diff options
| author | Max Kremmel <xing@synapse.plus.com> | 2007-06-13 19:39:05 +0000 |
|---|---|---|
| committer | Max Kremmel <xing@synapse.plus.com> | 2007-06-13 19:39:05 +0000 |
| commit | b27241f14b16362d747d069c4e584511f22bdb0e (patch) | |
| tree | 82457105f9e7138616284b0884b43e96d5908e0c /modules | |
| parent | 6ab6b0a128d55481edd9b9c975f08a6b20ec390f (diff) | |
| download | articles-b27241f14b16362d747d069c4e584511f22bdb0e.tar.gz articles-b27241f14b16362d747d069c4e584511f22bdb0e.tar.bz2 articles-b27241f14b16362d747d069c4e584511f22bdb0e.zip | |
updated getList in BitArticle to work more like the rest of bitweaver by not returnign data in ['data'] sub array. display future articles on main articles page.
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/mod_articles.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/mod_articles.php b/modules/mod_articles.php index d805321..aa843e1 100644 --- a/modules/mod_articles.php +++ b/modules/mod_articles.php @@ -1,6 +1,6 @@ <?php /** - * @version $Header: /cvsroot/bitweaver/_bit_articles/modules/mod_articles.php,v 1.14 2007/05/27 21:34:22 laetzer Exp $ + * @version $Header: /cvsroot/bitweaver/_bit_articles/modules/mod_articles.php,v 1.15 2007/06/13 19:39:05 squareing Exp $ * @package article * @subpackage modules */ @@ -44,7 +44,7 @@ $getHash['topic_id'] = !empty( $module_params['topic_id'] ) ? $module_param $articles = $articles->getList( $getHash ); if( ( !empty( $module_params['topic_id'] ) || !empty( $module_params['topic_name'] ) ) && empty($moduleParams['title']) && !empty( $articles ) ) { - $gBitSmarty->assign( 'moduleTitle', $articles['data'][0]['topic_name'] ); + $gBitSmarty->assign( 'moduleTitle', $articles[0]['topic_name'] ); } elseif( !empty($moduleParams['title']) ) { $gBitSmarty->assign( 'moduleTitle', $moduleParams['title'] ); } else { @@ -52,5 +52,5 @@ if( ( !empty( $module_params['topic_id'] ) || !empty( $module_params['topic_name } $gBitSmarty->assign( 'params', !empty( $moduleParams['params'] ) ? $moduleParams['params'] : ''); -$gBitSmarty->assign( 'modArticles', $articles['data'] ); -?>
\ No newline at end of file +$gBitSmarty->assign( 'modArticles', $articles ); +?> |
