https://www.mediawiki.org/wiki/Special:Code/MediaWiki/113056
Revision: 113056
Author: catrope
Date: 2012-03-05 18:13:11 +0000 (Mon, 05 Mar 2012)
Log Message:
-----------
1.19wmf1: MFT r113054
Modified Paths:
--------------
branches/wmf/1.19wmf1/extensions/CustomUserSignup/CustomUserSignup.hooks.php
branches/wmf/1.19wmf1/extensions/CustomUserSignup/modules/AccountCreationUserBucket.js
Property Changed:
----------------
branches/wmf/1.19wmf1/extensions/CustomUserSignup/
Property changes on: branches/wmf/1.19wmf1/extensions/CustomUserSignup
___________________________________________________________________
Modified: svn:mergeinfo
- /branches/JSTesting/extensions/CustomUserSignup:100352-107913
/branches/REL1_15/phase3/extensions/CustomUserSignup:51646
/branches/REL1_17/phase3/extensions/CustomUserSignup:81445,81448
/branches/new-installer/phase3/extensions/CustomUserSignup:43664-66004
/branches/sqlite/extensions/CustomUserSignup:58211-58321
/branches/wmf/1.18wmf1/extensions/CustomUserSignup:97508
/trunk/extensions/CustomUserSignup:111043,111199,111218,111484,111575,111604,111659-111661,111668,111670,111688,111690,111698,111713,111715,111780,111796,111814,111947,112074,112153,112160,112166,112267
/trunk/phase3/extensions/CustomUserSignup:111002,111029,111034,111062,111067,111076,111085,111128,111144,111251
+ /branches/JSTesting/extensions/CustomUserSignup:100352-107913
/branches/REL1_15/phase3/extensions/CustomUserSignup:51646
/branches/REL1_17/phase3/extensions/CustomUserSignup:81445,81448
/branches/new-installer/phase3/extensions/CustomUserSignup:43664-66004
/branches/sqlite/extensions/CustomUserSignup:58211-58321
/branches/wmf/1.18wmf1/extensions/CustomUserSignup:97508
/trunk/extensions/CustomUserSignup:111043,111199,111218,111484,111575,111604,111659-111661,111668,111670,111688,111690,111698,111713,111715,111780,111796,111814,111947,112074,112153,112160,112166,112267,113054
/trunk/phase3/extensions/CustomUserSignup:111002,111029,111034,111062,111067,111076,111085,111128,111144,111251
Modified:
branches/wmf/1.19wmf1/extensions/CustomUserSignup/CustomUserSignup.hooks.php
===================================================================
---
branches/wmf/1.19wmf1/extensions/CustomUserSignup/CustomUserSignup.hooks.php
2012-03-05 18:11:02 UTC (rev 113055)
+++
branches/wmf/1.19wmf1/extensions/CustomUserSignup/CustomUserSignup.hooks.php
2012-03-05 18:13:11 UTC (rev 113056)
@@ -114,6 +114,12 @@
$out->addModules( 'ext.UserBuckets' );
return true;
}
+
+ public static function makeGlobalVariablesScript( &$vars ) {
+ global $wgCustomUserSignupTrackAccountCreations;
+ $vars['wgCustomUserSignupTrackAccountCreations'] =
$wgCustomUserSignupTrackAccountCreations;
+ return true;
+ }
public static function addNewAccount( $user, $byEmail ){
global $wgRequest, $wgTitle,
$wgCustomUserSignupTrackAccountCreations;
Modified:
branches/wmf/1.19wmf1/extensions/CustomUserSignup/modules/AccountCreationUserBucket.js
===================================================================
---
branches/wmf/1.19wmf1/extensions/CustomUserSignup/modules/AccountCreationUserBucket.js
2012-03-05 18:11:02 UTC (rev 113055)
+++
branches/wmf/1.19wmf1/extensions/CustomUserSignup/modules/AccountCreationUserBucket.js
2012-03-05 18:13:11 UTC (rev 113056)
@@ -60,6 +60,7 @@
// "allActive" is reserved.
// If this function exists, it will be apply to every user not in the "none"
bucket
"allActive": function(){
+ if ( !mw.config.get( 'wgCustomUserSignupTrackAccountCreations' ) ) {
return; }
//track account creation attempts
$j("#wpCreateaccount").click(function(){
$j.trackAction('submit-signup-data'); });
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs