aboutsummaryrefslogtreecommitdiff
path: root/mod/blog/views
diff options
context:
space:
mode:
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-03-08 02:48:19 +0000
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-03-08 02:48:19 +0000
commit4a2316cc0620839f2ffe99054b488716d59b92f0 (patch)
treee2291995f2d16a4b38867cdf86478080ee0991d3 /mod/blog/views
parentc61c99ea775dc3a4446d0b03b2657bd343df67a0 (diff)
downloadelgg-4a2316cc0620839f2ffe99054b488716d59b92f0.tar.gz
elgg-4a2316cc0620839f2ffe99054b488716d59b92f0.tar.bz2
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
Diffstat (limited to 'mod/blog/views')
-rw-r--r--mod/blog/views/default/blog/sidebar/archives.php6
1 files changed, 2 insertions, 4 deletions
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 = '<ul class="blog-archives">';
foreach($dates as $date) {
- $date = $date->yearmonth;
-
$timestamplow = mktime(0, 0, 0, substr($date,4,2) , 1, substr($date, 0, 4));
$timestamphigh = mktime(0, 0, 0, ((int) substr($date, 4, 2)) + 1, 1, substr($date, 0, 4));