From 501c9ff40091d0ebd38059b475c8f8f276e46ff0 Mon Sep 17 00:00:00 2001 From: cash Date: Sat, 30 Oct 2010 22:18:58 +0000 Subject: fixed minor issue where blog code wasn't setting type when getting subtype git-svn-id: http://code.elgg.org/elgg/trunk@7147 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/blog/blog_lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mod') diff --git a/mod/blog/blog_lib.php b/mod/blog/blog_lib.php index 3a0b1955a..52d629a99 100644 --- a/mod/blog/blog_lib.php +++ b/mod/blog/blog_lib.php @@ -251,7 +251,7 @@ function blog_get_page_content_friends($user_guid) { function blog_get_blog_months($user_guid = NULL, $container_guid = NULL) { global $CONFIG; - $subtype = get_subtype_id('blog'); + $subtype = get_subtype_id('object', 'blog'); $q = "SELECT DISTINCT EXTRACT(YEAR_MONTH FROM FROM_UNIXTIME(mdv.string)) AS yearmonth FROM {$CONFIG->dbprefix}entities e, {$CONFIG->dbprefix}metadata, {$CONFIG->dbprefix}metastrings mdn, {$CONFIG->dbprefix}metastrings mdv -- cgit v1.2.3