From 5b373470acab1b9b92afa4920d9a062763e37a34 Mon Sep 17 00:00:00 2001 From: Badlop Date: Wed, 8 Aug 2018 14:05:04 +0200 Subject: [PATCH] Remove direct calls to muc_room mnesia table in mod_muc_admin (#2448) --- src/mod_muc_admin.erl | 4 +--- 1 file changed, 1 insertion(+), 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">>)])]) -- 2.40.0