summaryrefslogtreecommitdiff
path: root/actions/openidsettings.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@prodromou.name>2008-06-18 15:02:02 -0400
committerEvan Prodromou <evan@prodromou.name>2008-06-18 15:02:02 -0400
commit03a08efce9bfe3be1673581594498b5d856d08b0 (patch)
tree70243c23f6aeeb691c291588ade2373a4a18ccec /actions/openidsettings.php
parentf341780e1ff56a02d3283a1fb380f4fa0ac34ae9 (diff)
move instructions to top in openid pages
darcs-hash:20080618190202-84dde-20cc79646144076090c36fe25d78f2d0e399d5ad.gz
Diffstat (limited to 'actions/openidsettings.php')
-rw-r--r--actions/openidsettings.php17
1 files changed, 12 insertions, 5 deletions
diff --git a/actions/openidsettings.php b/actions/openidsettings.php
index 742ef2757..aceb8023b 100644
--- a/actions/openidsettings.php
+++ b/actions/openidsettings.php
@@ -24,18 +24,25 @@ require_once(INSTALLDIR.'/lib/openid.php');
class OpenidsettingsAction extends SettingsAction {
- function show_form($msg=NULL, $success=false) {
-
- $user = common_current_user();
+ function show_top($arr) {
+ $msg = $arr[0];
+ $success = $arr[1];
- common_show_header(_t('OpenID settings'), NULL, NULL, array($this, 'settings_menu'));
-
if ($msg) {
$this->message($msg, $success);
} else {
common_element('div', 'instructions',
_t('Manage your associated OpenIDs from here.'));
}
+ }
+
+ function show_form($msg=NULL, $success=false) {
+
+ $user = common_current_user();
+
+ common_show_header(_t('OpenID settings'), NULL, array($msg, $success),
+ array($this, 'show_top'));
+
common_element_start('form', array('method' => 'POST',
'id' => 'openidadd',
'action' =>