summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorlsces <lester@lsces.co.uk>2015-08-25 20:27:23 +0100
committerlsces <lester@lsces.co.uk>2015-08-25 20:27:23 +0100
commit8f27764e60e6e2a163cddf0d4e87632c1399bdbd (patch)
tree2d964624551dda67170abf80d1341879c63afebe /modules
parentaf20497628af5baa676a245260f50a06fb3b9585 (diff)
downloadblogs-8f27764e60e6e2a163cddf0d4e87632c1399bdbd.tar.gz
blogs-8f27764e60e6e2a163cddf0d4e87632c1399bdbd.tar.bz2
blogs-8f27764e60e6e2a163cddf0d4e87632c1399bdbd.zip
getList return tidy up to BW4 style
Diffstat (limited to 'modules')
-rw-r--r--modules/mod_last_blog_posts.php3
-rw-r--r--modules/mod_top_active_blogs.php4
2 files changed, 3 insertions, 4 deletions
diff --git a/modules/mod_last_blog_posts.php b/modules/mod_last_blog_posts.php
index 7f42f10..9309405 100644
--- a/modules/mod_last_blog_posts.php
+++ b/modules/mod_last_blog_posts.php
@@ -60,9 +60,8 @@ if ( !empty( $module_params['status'] ) && $module_params['status'] = "draft" &&
$blogPost = new BitBlogPost();
$blogPosts = $blogPost->getList( $listHash );
-
$descriptionLength = ( !empty( $module_params['max_preview_length'] ) ? $module_params['max_preview_length'] : 500 );
$_template->tpl_vars['blogPostsFormat'] = new Smarty_variable( (empty($module_params['format']) ) );
$_template->tpl_vars['descriptionLength'] = new Smarty_variable( $descriptionLength );
-$_template->tpl_vars['modLastBlogPosts'] = new Smarty_variable( $blogPosts["data"] );
+$_template->tpl_vars['modLastBlogPosts'] = new Smarty_variable( $blogPosts );
diff --git a/modules/mod_top_active_blogs.php b/modules/mod_top_active_blogs.php
index 6a03f77..853bacd 100644
--- a/modules/mod_top_active_blogs.php
+++ b/modules/mod_top_active_blogs.php
@@ -20,7 +20,7 @@ $listHash['is_active'] = TRUE;
$blog = new BitBlog();
$ranking = $blog->getList( $listHash );
-if( !empty( $ranking['data'] ) ) {
- $_template->tpl_vars['modTopActiveBlogs'] = new Smarty_variable( $ranking["data"]);
+if( !empty( $ranking ) ) {
+ $_template->tpl_vars['modTopActiveBlogs'] = new Smarty_variable( $ranking );
}
?>