diff options
author | Zach Copley <zach@status.net> | 2010-01-11 14:11:43 -0800 |
---|---|---|
committer | Zach Copley <zach@status.net> | 2010-01-14 02:41:06 +0000 |
commit | 31c5ebb95ccf40d34a824099acb24f86e7f67095 (patch) | |
tree | 43dbf0a43544c9b5b0c1c2cfcb0308bd19d0f226 /actions | |
parent | 7885dadfe7807f6a87c3d8ff0687280f4875eeef (diff) |
Better detial in connected OAuth applications list
Diffstat (limited to 'actions')
-rw-r--r-- | actions/oauthconnectionssettings.php | 32 |
1 files changed, 25 insertions, 7 deletions
diff --git a/actions/oauthconnectionssettings.php b/actions/oauthconnectionssettings.php index e4b5af158..56e7b02fb 100644 --- a/actions/oauthconnectionssettings.php +++ b/actions/oauthconnectionssettings.php @@ -48,6 +48,16 @@ require_once INSTALLDIR . '/lib/applicationlist.php'; class OauthconnectionssettingsAction extends ConnectSettingsAction { + + var $page = null; + + function prepare($args) + { + parent::prepare($args); + $this->page = ($this->arg('page')) ? ($this->arg('page') + 0) : 1; + return true; + } + /** * Title of the page * @@ -59,6 +69,11 @@ class OauthconnectionssettingsAction extends ConnectSettingsAction return _('Connected Applications'); } + function isReadOnly($args) + { + return true; + } + /** * Instructions for use * @@ -86,13 +101,16 @@ class OauthconnectionssettingsAction extends ConnectSettingsAction $application = $profile->getApplications($offset, $limit); - if ($application) { - $al = new ApplicationList($application, $this->user, $this); - $cnt = $al->show(); - if (0 == $cnt) { - $this->showEmptyListMessage(); - } - } + $cnt == 0; + + if (!empty($application)) { + $al = new ApplicationList($application, $user, $this, true); + $cnt = $al->show(); + } + + if ($cnt == 0) { + $this->showEmptyListMessage(); + } $this->pagination($this->page > 1, $cnt > APPS_PER_PAGE, $this->page, 'connectionssettings', |