aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBadlop <badlop@process-one.net>2018-08-08 14:05:04 +0200
committerBadlop <badlop@process-one.net>2018-08-08 14:18:34 +0200
commit5b373470acab1b9b92afa4920d9a062763e37a34 (patch)
tree2c4656c66c3e5ce34daa8adcf4cda77d4d3cd41e /src
parentAdd markdown options as specified in the docs git repo (diff)
Remove direct calls to muc_room mnesia table in mod_muc_admin (#2448)
Diffstat (limited to 'src')
-rw-r--r--src/mod_muc_admin.erl4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/mod_muc_admin.erl b/src/mod_muc_admin.erl
index cff855d6d..7b702cdc5 100644
--- a/src/mod_muc_admin.erl
+++ b/src/mod_muc_admin.erl
@@ -424,9 +424,7 @@ web_page_main(_, #request{path=[<<"muc">>], lang = Lang} = _Request) ->
Res = [?XCT(<<"h1">>, <<"Multi-User Chat">>),
?XCT(<<"h3">>, <<"Statistics">>),
?XAE(<<"table">>, [],
- [?XE(<<"tbody">>, [?TDTD(<<"Total rooms">>, OnlineRoomsNumber),
- ?TDTD(<<"Permanent rooms">>, mnesia:table_info(muc_room, size)),
- ?TDTD(<<"Registered nicknames">>, mnesia:table_info(muc_registered, size))
+ [?XE(<<"tbody">>, [?TDTD(<<"Total rooms">>, OnlineRoomsNumber)
])
]),
?XE(<<"ul">>, [?LI([?ACT(<<"rooms">>, <<"List of rooms">>)])])