X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=inline;f=actions%2Flogout.php;h=567d808cd1f7e38863f77d1087dc8cc68758f7b9;hb=f44e0330df8ffd18786dbeb2e0a6ad4e2641046a;hp=eda5cefe5bf15eae09c327cfd55b5e09c2c4d1b2;hpb=865b716f0919b6e5133133cd6be53f4143660324;p=quix0rs-gnu-social.git diff --git a/actions/logout.php b/actions/logout.php index eda5cefe5b..567d808cd1 100644 --- a/actions/logout.php +++ b/actions/logout.php @@ -28,12 +28,10 @@ * along with this program. If not, see . */ -if (!defined('STATUSNET')) { +if (!defined('STATUSNET') && !defined('LACONICA')) { exit(1); } -require_once INSTALLDIR.'/lib/openid.php'; - /** * Logout action class. * @@ -46,7 +44,6 @@ require_once INSTALLDIR.'/lib/openid.php'; */ class LogoutAction extends Action { - /** * This is read only. * @@ -68,6 +65,7 @@ class LogoutAction extends Action { parent::handle($args); if (!common_logged_in()) { + // TRANS: Error message displayed when trying to perform an action that requires a logged in user. $this->clientError(_('Not logged in.')); } else { if (Event::handle('StartLogout', array($this))) { @@ -85,5 +83,4 @@ class LogoutAction extends Action common_real_login(false); // not logged in common_forgetme(); // don't log back in! } - }