https://www.mediawiki.org/wiki/Special:Code/MediaWiki/113054
Revision: 113054
Author: catrope
Date: 2012-03-05 18:09:08 +0000 (Mon, 05 Mar 2012)
Log Message:
-----------
Followup r112267: make $wgCustomUserSignupTrackAccountCreations enable/disable
all clicktracking events
Modified Paths:
--------------
trunk/extensions/CustomUserSignup/CustomUserSignup.hooks.php
trunk/extensions/CustomUserSignup/modules/AccountCreationUserBucket.js
Modified: trunk/extensions/CustomUserSignup/CustomUserSignup.hooks.php
===================================================================
--- trunk/extensions/CustomUserSignup/CustomUserSignup.hooks.php
2012-03-05 18:06:29 UTC (rev 113053)
+++ trunk/extensions/CustomUserSignup/CustomUserSignup.hooks.php
2012-03-05 18:09:08 UTC (rev 113054)
@@ -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: trunk/extensions/CustomUserSignup/modules/AccountCreationUserBucket.js
===================================================================
--- trunk/extensions/CustomUserSignup/modules/AccountCreationUserBucket.js
2012-03-05 18:06:29 UTC (rev 113053)
+++ trunk/extensions/CustomUserSignup/modules/AccountCreationUserBucket.js
2012-03-05 18:09:08 UTC (rev 113054)
@@ -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