Fix case of logOut action string
authorMichael M Slusarz <slusarz@curecanti.org>
Tue, 16 Mar 2010 06:03:18 +0000 (00:03 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Tue, 16 Mar 2010 06:03:18 +0000 (00:03 -0600)
horde/services/ajax.php

index cb5877a..5871358 100644 (file)
@@ -10,7 +10,7 @@
  * 'ACTION' - (string) The AJAX action identifier.
  *
  * Reserved 'ACTION' strings:
- * 'LogOut' - Logs user out of Horde.
+ * 'logOut' - Logs user out of Horde.
  *
  * Copyright 2010 The Horde Project (http://www.horde.org/)
  *
@@ -36,7 +36,7 @@ try {
 } catch (Horde_Exception $e) {
     /* Handle session timeouts when they come from an AJAX request. */
     if (($e->getCode() == Horde_Registry::AUTH_FAILURE) &&
-        ($action != 'LogOut')) {
+        ($action != 'logOut')) {
         $ajax = Horde_Ajax::getInstance($app);
         $GLOBALS['notification']->push(str_replace('&amp;', '&', Horde_Auth::getLogoutUrl(array('reason' => Horde_Auth::REASON_SESSION))), 'horde.ajaxtimeout', array('content.raw'));
         Horde::sendHTTPResponse(Horde::prepareResponse(null, $ajax->notify), $ajax->responseType());