]> granicus.if.org Git - ejabberd/commitdiff
Remove direct calls to muc_room mnesia table in mod_muc_admin (#2448)
authorBadlop <badlop@process-one.net>
Wed, 8 Aug 2018 12:05:04 +0000 (14:05 +0200)
committerBadlop <badlop@process-one.net>
Wed, 8 Aug 2018 12:18:34 +0000 (14:18 +0200)
src/mod_muc_admin.erl

index cff855d6de49dcc87677af722ba8685c4356adb0..7b702cdc589dc4dc6fa4f8d97d2860346715d87c 100644 (file)
@@ -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">>)])])