Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3826
diff.txt
Public
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Authored By
•
bzimport
Nov 21 2014, 9:39 PM
2014-11-21 21:39:06 (UTC+0)
Size
1 KB
Referenced Files
None
Subscribers
None
diff.txt
View Options
diff -urN old/AuthPlugin.php new/AuthPlugin.php
--- old/AuthPlugin.php 2007-08-04 12:36:26.000000000 -0400
+++ new/AuthPlugin.php 2007-10-05 10:31:11.409349600 -0400
@@ -69,9 +69,10 @@
* Modify options in the login template.
*
* @param $template UserLoginTemplate object.
+ * @param $type String 'signup' or 'login'.
* @public
*/
- function modifyUITemplate( &$template ) {
+ function modifyUITemplate( &$template, &$type ) {
# Override this!
$template->set( 'usedomain', false );
}
diff -urN old/SpecialUserlogin.php new/SpecialUserlogin.php
--- old/SpecialUserlogin.php 2007-10-05 10:32:34.772076800 -0400
+++ new/SpecialUserlogin.php 2007-10-05 10:32:10.385042100 -0400
@@ -700,7 +700,7 @@
}
// 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 {
File Metadata
Details
Attached
Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3393
Default Alt Text
diff.txt (1 KB)
Attached To
Mode
T11691: Add type parameter to ModifyUITemplate function calls
Attached
Detach File
Event Timeline
Log In to Comment