X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Flogout.php;h=f747371225587a4b85099b6677bc8879e9c97556;hb=65bf58be806d19bc7fe962c0824160deab07d5c3;hp=eda5cefe5bf15eae09c327cfd55b5e09c2c4d1b2;hpb=c5cf2c4c94794a1aeea32a427ddd50e157fa893d;p=quix0rs-gnu-social.git diff --git a/actions/logout.php b/actions/logout.php index eda5cefe5b..f747371225 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. * @@ -68,6 +66,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))) { @@ -85,5 +84,4 @@ class LogoutAction extends Action common_real_login(false); // not logged in common_forgetme(); // don't log back in! } - }