Index: trunk/phase3/includes/AuthPlugin.php |
— | — | @@ -63,8 +63,9 @@ |
64 | 64 | * Modify options in the login template. |
65 | 65 | * |
66 | 66 | * @param $template UserLoginTemplate object. |
| 67 | + * @param $type String 'signup' or 'login'. |
67 | 68 | */ |
68 | | - public function modifyUITemplate( &$template ) { |
| 69 | + public function modifyUITemplate( &$template, &$type ) { |
69 | 70 | # Override this! |
70 | 71 | $template->set( 'usedomain', false ); |
71 | 72 | } |
Index: trunk/phase3/includes/specials/SpecialUserlogin.php |
— | — | @@ -931,7 +931,7 @@ |
932 | 932 | } |
933 | 933 | |
934 | 934 | // Give authentication and captcha plugins a chance to modify the form |
935 | | - $wgAuth->modifyUITemplate( $template ); |
| 935 | + $wgAuth->modifyUITemplate( $template, $this->mType ); |
936 | 936 | if ( $this->mType == 'signup' ) { |
937 | 937 | wfRunHooks( 'UserCreateForm', array( &$template ) ); |
938 | 938 | } else { |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -163,6 +163,7 @@ |
164 | 164 | * (bug 471) Allow RSS feeds for watchlist, using an opt-in security token |
165 | 165 | * (bug 10812) Interwiki links can have names and descriptions, fetched from |
166 | 166 | message 'interwiki-desc-PREFIX', not really used anywhere yet though |
| 167 | +* (bug 9691) Add type (signup or login) parameter to AuthPlugin::ModifyUITemplate() |
167 | 168 | |
168 | 169 | === Bug fixes in 1.16 === |
169 | 170 | |