http://www.mediawiki.org/wiki/Special:Code/MediaWiki/95935
Revision: 95935
Author: laner
Date: 2011-09-01 05:12:47 +0000 (Thu, 01 Sep 2011)
Log Message:
-----------
Add hook to allow other extensions to update users on login and creation
Modified Paths:
--------------
trunk/extensions/LdapAuthentication/LdapAuthentication.php
Modified: trunk/extensions/LdapAuthentication/LdapAuthentication.php
===================================================================
--- trunk/extensions/LdapAuthentication/LdapAuthentication.php 2011-09-01
05:11:58 UTC (rev 95934)
+++ trunk/extensions/LdapAuthentication/LdapAuthentication.php 2011-09-01
05:12:47 UTC (rev 95935)
@@ -886,6 +886,9 @@
$saveSettings = true;
}
+ # Let other extensions update the user
+ wfRunHooks( 'LDAPUpdateUser', array( $this ) );
+
if ( $saveSettings ) {
$this->printDebug( "Saving user settings.",
NONSENSITIVE );
$user->saveSettings();
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs