mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-26 17:38:45 +01:00
Remove direct calls to muc_room mnesia table in mod_muc_admin (#2448)
This commit is contained in:
parent
0146189b65
commit
5b373470ac
@ -424,9 +424,7 @@ web_page_main(_, #request{path=[<<"muc">>], lang = Lang} = _Request) ->
|
|||||||
Res = [?XCT(<<"h1">>, <<"Multi-User Chat">>),
|
Res = [?XCT(<<"h1">>, <<"Multi-User Chat">>),
|
||||||
?XCT(<<"h3">>, <<"Statistics">>),
|
?XCT(<<"h3">>, <<"Statistics">>),
|
||||||
?XAE(<<"table">>, [],
|
?XAE(<<"table">>, [],
|
||||||
[?XE(<<"tbody">>, [?TDTD(<<"Total rooms">>, OnlineRoomsNumber),
|
[?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(<<"ul">>, [?LI([?ACT(<<"rooms">>, <<"List of rooms">>)])])
|
?XE(<<"ul">>, [?LI([?ACT(<<"rooms">>, <<"List of rooms">>)])])
|
||||||
|
Loading…
Reference in New Issue
Block a user