mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-28 16:34:13 +01:00
Docs: When definer is unknown, don't show Module section
This commit is contained in:
parent
57bd0ef4f5
commit
d585b1fcb6
@ -402,7 +402,7 @@ gen_doc(#ejabberd_commands{name=Name, tags=Tags, desc=Desc, longdesc=LongDesc,
|
|||||||
end,
|
end,
|
||||||
TagsText = [?RAW("*`"++atom_to_list(Tag)++"`* ") || Tag <- Tags],
|
TagsText = [?RAW("*`"++atom_to_list(Tag)++"`* ") || Tag <- Tags],
|
||||||
IsDefinerMod = case Definer of
|
IsDefinerMod = case Definer of
|
||||||
unknown -> true;
|
unknown -> false;
|
||||||
_ -> lists:member(gen_mod, proplists:get_value(behaviour, Definer:module_info(attributes)))
|
_ -> lists:member(gen_mod, proplists:get_value(behaviour, Definer:module_info(attributes)))
|
||||||
end,
|
end,
|
||||||
ModuleText = case IsDefinerMod of
|
ModuleText = case IsDefinerMod of
|
||||||
|
Loading…
Reference in New Issue
Block a user