Remove unused deprecated XML output in mod/ping

- Remove unused parameters localUser and uid in mod/ping
- Unify data array initialization in mod/ping
This commit is contained in:
Hypolite Petovan 2022-03-04 07:36:44 -05:00
parent 5a12bd87f3
commit b002f6f027
2 changed files with 43 additions and 162 deletions

View file

@ -499,7 +499,7 @@ function insertBBCodeInTextarea(BBCode, textarea) {
function NavUpdate() {
if (!stopped) {
var pingCmd = 'ping?format=json' + ((localUser != 0) ? '&uid=' + localUser : '');
var pingCmd = 'ping';
$.get(pingCmd, function(data) {
if (data.result) {
// send nav-update event