diff options
author | Zach Copley <zach@status.net> | 2010-01-11 14:11:43 -0800 |
---|---|---|
committer | Zach Copley <zach@status.net> | 2010-01-24 16:36:03 -0800 |
commit | c78937537ed17eabb665ec6e4344b564799cbccc (patch) | |
tree | b8893746e5e2d9e7ced2b1f4c8406db76b2b990f /actions/oauthconnectionssettings.php | |
parent | 11bd98025c1e41921359b634461772d22a1c059f (diff) |
Better detial in connected OAuth applications list
Diffstat (limited to 'actions/oauthconnectionssettings.php')
-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', |