From 4a2316cc0620839f2ffe99054b488716d59b92f0 Mon Sep 17 00:00:00 2001 From: brettp Date: Tue, 8 Mar 2011 02:48:19 +0000 Subject: Refs #2229: Using time_created instead of publish_date metadata to sort. git-svn-id: http://code.elgg.org/elgg/trunk@8624 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/blog/views/default/blog/sidebar/archives.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'mod/blog/views/default/blog/sidebar/archives.php') diff --git a/mod/blog/views/default/blog/sidebar/archives.php b/mod/blog/views/default/blog/sidebar/archives.php index a76193831..5eda64afb 100644 --- a/mod/blog/views/default/blog/sidebar/archives.php +++ b/mod/blog/views/default/blog/sidebar/archives.php @@ -8,14 +8,12 @@ $page_owner = elgg_get_page_owner_entity(); // This is a limitation of the URL schema. if ($page_owner && $vars['page'] != 'friends') { - $dates = blog_get_blog_months($user); - + $dates = get_entity_dates('object', 'blog', $page_owner->getGUID()); + if ($dates) { $title = elgg_echo('blog:archives'); $content = '