From 30c3cd552b9b2424167818c96de4c813c120111e Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Wed, 18 Jun 2008 11:05:57 -0400 Subject: fixup syntax error in openid.php darcs-hash:20080618150557-84dde-61120bcf12e9ecfaafda079d1a943c75f99f5930.gz --- actions/openidlogin.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'actions') diff --git a/actions/openidlogin.php b/actions/openidlogin.php index fa04d4576..6ce4bb191 100644 --- a/actions/openidlogin.php +++ b/actions/openidlogin.php @@ -28,7 +28,8 @@ class OpenidloginAction extends Action { if (common_logged_in()) { common_user_error(_t('Already logged in.')); } else if ($_SERVER['REQUEST_METHOD'] == 'POST') { - $result = oid_authenticate($this->trimmed('openid_url'), 'finishopenidlogin'); + $result = oid_authenticate($this->trimmed('openid_url'), + 'finishopenidlogin'); if (is_string($result)) { # error message $this->show_form($result); } @@ -45,9 +46,10 @@ class OpenidloginAction extends Action { common_element('div', 'instructions', _t('Login with an OpenID account.')); } + $formaction = common_local_url('openidlogin'); common_element_start('form', array('method' => 'POST', 'id' => 'openidlogin', - 'action' => common_local_url('openidlogin'))); + 'action' => $formaction)); common_input('openid_url', _t('OpenID URL')); common_submit('submit', _t('Login')); common_element_end('form'); -- cgit v1.2.3-54-g00ecf