exit(1);
}
-require_once INSTALLDIR . '/lib/connectsettingsaction.php';
require_once INSTALLDIR . '/lib/applicationlist.php';
require_once INSTALLDIR . '/lib/apioauthstore.php';
*
* @see SettingsAction
*/
-class OauthconnectionssettingsAction extends ConnectSettingsAction
+class OauthconnectionssettingsAction extends SettingsAction
{
var $page = null;
var $oauth_token = null;
*
* @return string Title of the page
*/
-
function title()
{
// TRANS: Title for OAuth connection settings.
*
* @return instructions for use
*/
-
function getInstructions()
{
// TRANS: Instructions for OAuth connection settings.
$offset = ($this->page - 1) * APPS_PER_PAGE;
$limit = APPS_PER_PAGE + 1;
- $connection = $profile->getConnectedApps($offset, $limit);
+ $connection = $user->getConnectedApps($offset, $limit);
$cnt = 0;
$token = $this->trimmed('token');
if (!$token || $token != common_session_token()) {
+ // TRANS: Client error displayed when the session token does not match or is not given.
$this->showForm(_('There was a problem with your session token. '.
'Try again, please.'));
return;