aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-10-30 22:18:58 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-10-30 22:18:58 +0000
commit501c9ff40091d0ebd38059b475c8f8f276e46ff0 (patch)
tree5df38d5d88e430e18ce6617980e29cc32e264a29
parent9255088a79a034c3cdf4eb46124504b9dd0c838e (diff)
downloadelgg-501c9ff40091d0ebd38059b475c8f8f276e46ff0.tar.gz
elgg-501c9ff40091d0ebd38059b475c8f8f276e46ff0.tar.bz2
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
-rw-r--r--mod/blog/blog_lib.php2
1 files changed, 1 insertions, 1 deletions
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