Skip to content

Commit

Permalink
mod_content_groups: use the m_category:is_meta/2 to determine the def…
Browse files Browse the repository at this point in the history
…ault content group.
  • Loading branch information
mworrell committed Apr 8, 2015
1 parent 513609d commit d5890e0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions modules/mod_content_groups/mod_content_groups.erl
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,9 @@
observe_rsc_get(#rsc_get{}, Props, Context) ->
case proplists:get_value(content_group_id, Props) of
undefined ->
IsA = m_category:is_a(proplists:get_value(category_id, Props), Context),
[
{content_group_id,
case lists:member(meta, IsA) of
case m_category:is_meta(proplists:get_value(category_id, Props), Context) of
true -> m_rsc:rid(system_content_group, Context);
false -> m_rsc:rid(default_content_group, Context)
end}
Expand Down

0 comments on commit d5890e0

Please sign in to comment.