From: Badlop Date: Wed, 8 Aug 2018 12:05:04 +0000 (+0200) Subject: Remove direct calls to muc_room mnesia table in mod_muc_admin (#2448) X-Git-Tag: 18.09~67 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5b373470acab1b9b92afa4920d9a062763e37a34;p=ejabberd Remove direct calls to muc_room mnesia table in mod_muc_admin (#2448) --- 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">>)])])