diff --git a/app/widgets/Presence/Presence.php b/app/widgets/Presence/Presence.php index d7eac9cc2..4f27c1f0f 100644 --- a/app/widgets/Presence/Presence.php +++ b/app/widgets/Presence/Presence.php @@ -74,6 +74,14 @@ class Presence extends WidgetBase } } + function ajaxLogout() + { + $user = new User(); + $user->desauth(); + RPC::call('movim_redirect', Route::urlize('disconnect')); + RPC::commit(); + } + function preparePresence() { $txt = getPresences(); @@ -107,9 +115,10 @@ class Presence extends WidgetBase '.$txt[2].' '.$txt[3].' '.$txt[4].' - '.t('Disconnect').' + '.t('Disconnect').' '; + //href="'.Route::urlize('disconnect').'" return $html; } diff --git a/bootstrap.php b/bootstrap.php index d6a7cf299..1b55e035f 100644 --- a/bootstrap.php +++ b/bootstrap.php @@ -57,7 +57,6 @@ class Bootstrap { $this->setTimezone(); - $loadmodlsuccess = $this->loadModl(); $this->loadMoxl();