X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=actions%2Foauthappssettings.php;h=e9b6280feb81ad65e1f0c1374b1d22de2c641b37;hb=673bef2fdae9db750f4daf5bfe7d639eb2ec2acc;hp=3c0309a489fb3a8d03c6ae41a9849ffd604638f2;hpb=0291c6f7cd07cfb6845215ab33f8a56b417c0d1c;p=quix0rs-gnu-social.git diff --git a/actions/oauthappssettings.php b/actions/oauthappssettings.php index 3c0309a489..e9b6280feb 100644 --- a/actions/oauthappssettings.php +++ b/actions/oauthappssettings.php @@ -27,12 +27,7 @@ * @link http://status.net/ */ -if (!defined('STATUSNET') && !defined('LACONICA')) { - exit(1); -} - -require_once INSTALLDIR . '/lib/settingsaction.php'; -require_once INSTALLDIR . '/lib/applicationlist.php'; +if (!defined('GNUSOCIAL')) { exit(1); } /** * Show a user's registered OAuth applications @@ -58,7 +53,6 @@ class OauthappssettingsAction extends SettingsAction if (!common_logged_in()) { // TRANS: Message displayed to an anonymous user trying to view OAuth application list. $this->clientError(_('You must be logged in to list your applications.')); - return false; } return true;