From 16436d9211e3ad6fe01073c063cf2ae2e35ea314 Mon Sep 17 00:00:00 2001 From: tokul Date: Sun, 21 Aug 2005 11:29:50 +0000 Subject: [PATCH] place login form elements before login button. #1245070. I think change was approved by Paul in plugins mailing list. If you think that I am breaking too many things, I can revert the change. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@9979 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- ChangeLog | 2 ++ doc/Development/plugin.txt | 3 ++- src/login.php | 4 ++-- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index e8ddf48e..fa27d338 100644 --- a/ChangeLog +++ b/ChangeLog @@ -431,6 +431,8 @@ Version 1.5.1 -- CVS able to convert html formated mails to different character set. Initial patch by Peter Draganov (#1195232). Fixed display of html formated emails in formatBody() function (#1258925). + - login_form hook changed from do_hook to concat_hook_function in order to + place form elements before login button (#1245070). Version 1.5.0 - 2 February 2004 ------------------------------- diff --git a/doc/Development/plugin.txt b/doc/Development/plugin.txt index 64ca8f0a..c2dcb2f4 100644 --- a/doc/Development/plugin.txt +++ b/doc/Development/plugin.txt @@ -314,7 +314,8 @@ but may be out of date soon thereafter. You never know. ;-) left_main_after src/left_main.php do_hook login_cookie src/login.php do_hook login_top src/login.php do_hook - login_form src/login.php do_hook + login_form src/login.php concat_hook + (was do_hook before 1.5.1) login_bottom src/login.php do_hook * optpage_set_loadinfo src/options.php do_hook * optpage_loadhook_personal src/options.php do_hook diff --git a/src/login.php b/src/login.php index 4e83354c..88b43680 100644 --- a/src/login.php +++ b/src/login.php @@ -185,7 +185,8 @@ echo html_tag( 'table', $rcptaddress . addHidden('just_logged_in', '1'), 'left', '', 'width="*"' ) - ) , + ) . + concat_hook_function('login_form') , 'center', $color[4], 'border="0" width="100%"' ) , 'left', $color[4] ) ) . @@ -198,7 +199,6 @@ echo html_tag( 'table', 'center' ) ) , '', $color[4], 'border="0" cellspacing="0" cellpadding="0" width="100%"' ); -do_hook('login_form'); echo '' . "\n"; do_hook('login_bottom'); -- 2.25.1