From 00a3b7956aa1ffce44b4aee677b1952897354bda Mon Sep 17 00:00:00 2001 From: Chad Horohoe Date: Mon, 27 Jul 2009 23:53:23 +0000 Subject: [PATCH] (bug 9691) Add type parameter to ModifyUITemplate function calls --- RELEASE-NOTES | 1 + includes/AuthPlugin.php | 3 ++- includes/specials/SpecialUserlogin.php | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 837157f7b1..c0c5c142c4 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -163,6 +163,7 @@ this. Was used when mwEmbed was going to be an extension. * (bug 471) Allow RSS feeds for watchlist, using an opt-in security token * (bug 10812) Interwiki links can have names and descriptions, fetched from message 'interwiki-desc-PREFIX', not really used anywhere yet though +* (bug 9691) Add type (signup or login) parameter to AuthPlugin::ModifyUITemplate() === Bug fixes in 1.16 === diff --git a/includes/AuthPlugin.php b/includes/AuthPlugin.php index 5ac790c5c9..eacabd4e41 100644 --- a/includes/AuthPlugin.php +++ b/includes/AuthPlugin.php @@ -63,8 +63,9 @@ class AuthPlugin { * Modify options in the login template. * * @param $template UserLoginTemplate object. + * @param $type String 'signup' or 'login'. */ - public function modifyUITemplate( &$template ) { + public function modifyUITemplate( &$template, &$type ) { # Override this! $template->set( 'usedomain', false ); } diff --git a/includes/specials/SpecialUserlogin.php b/includes/specials/SpecialUserlogin.php index 2aa6977e8b..da06df0245 100644 --- a/includes/specials/SpecialUserlogin.php +++ b/includes/specials/SpecialUserlogin.php @@ -931,7 +931,7 @@ class LoginForm { } // Give authentication and captcha plugins a chance to modify the form - $wgAuth->modifyUITemplate( $template ); + $wgAuth->modifyUITemplate( $template, $this->mType ); if ( $this->mType == 'signup' ) { wfRunHooks( 'UserCreateForm', array( &$template ) ); } else { -- 2.20.1