File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -441,22 +441,18 @@ function createUser($username, $domain = '') {
441441 */
442442
443443 // Store which fields should be auto-updated from Facebook when the user logs in.
444+ global $ wgRequest ;
444445 $ updateFormPrefix = 'wpUpdateUserInfo ' ;
445446 foreach (self ::$ availableUserUpdateOptions as $ option ) {
446- /*
447447 if ($ wgRequest ->getVal ($ updateFormPrefix . $ option , '' ) != '' ) {
448448 $ user ->setOption ("facebook-update-on-login- $ option " , 1 );
449449 } else {
450450 $ user ->setOption ("facebook-update-on-login- $ option " , 0 );
451451 }
452- */
453- // Default all values to true. TODO: Remove this line, defaults are
454- // taken care of by $wgDefaultUserOptions in FacebookInit
455- $ this ->user ->setOption ("facebook-update-on-login- $ option " , 1 );
456452 }
457453
458454 // Process the FacebookPushEvent preference checkboxes if Push Events are enabled
459- global $ wgFbEnablePushToFacebook, $ wgRequest ;
455+ global $ wgFbEnablePushToFacebook ;
460456 if ( !empty ( $ wgFbEnablePushToFacebook ) ) {
461457 global $ wgFbPushEventClasses ;
462458 if ( !empty ( $ wgFbPushEventClasses ) ) {
You can’t perform that action at this time.
0 commit comments