X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Fopenidsettings.php;h=7c12bd4429bd11d6ff3997e61f789b1164ceb826;hb=26c7d5f04ea7808c8a3addf1d4ed56d36a36b6c9;hp=742ef2757bdab35bca387f7b03a2a90c07501bb3;hpb=7ce5ed80811cd553940882b5ef5a1f7f235e71f2;p=quix0rs-gnu-social.git diff --git a/actions/openidsettings.php b/actions/openidsettings.php index 742ef2757b..7c12bd4429 100644 --- a/actions/openidsettings.php +++ b/actions/openidsettings.php @@ -24,18 +24,27 @@ 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.')); } + + $this->settings_menu(); + } + + 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' => @@ -122,7 +131,7 @@ class OpenidsettingsAction extends SettingsAction { return; } $oid->delete(); - $this->show_form(_t('OpenID removed.', true)); + $this->show_form(_t('OpenID removed.'), true); return; } } \ No newline at end of file