]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/logout.php
Consolidate common code in micro-apps custom notice type display actions.
[quix0rs-gnu-social.git] / actions / logout.php
index 7e768fca632d30acd8a77defcd055a21f8d4955c..8e903db22119ae8f69fb813fbb6bf8bff415d8ed 100644 (file)
@@ -44,7 +44,6 @@ if (!defined('STATUSNET') && !defined('LACONICA')) {
  */
 class LogoutAction extends Action
 {
-
     /**
      * This is read only.
      *
@@ -66,6 +65,7 @@ class LogoutAction extends Action
     {
         parent::handle($args);
         if (!common_logged_in()) {
+            // TRANS: Client error displayed trying to log out when not logged in.
             $this->clientError(_('Not logged in.'));
         } else {
             if (Event::handle('StartLogout', array($this))) {
@@ -81,7 +81,6 @@ class LogoutAction extends Action
     {
         common_set_user(null);
         common_real_login(false); // not logged in
-        common_forgetme(); // do not log back in!
+        common_forgetme(); // don't log back in!
     }
-
 }