Skip to content

Commit

Permalink
Partial Revert: 1fac5b1 (single line from this commit)
Browse files Browse the repository at this point in the history
The mentality behind the original change was twofold: If the JS SDK hadn't loaded yet, clicking the link would still start the Connecting process. Second, the user could copy the link, venture to it and initiate the Connecting process.

I am reverting this (perhaps temporarily) because of the first case: If the JS SDK hasn't loaded yet, it might be because facebook.js isn't being loaded (e.g. 404), or (as is the case fixed by 1fac5b1) facebook.js is included AFTER Facebook's JS SDK has completely loaded. Both of these cases are fatal for the login process: Special:Connect cannot continue without the JS SDK. Therefore, sending the user to this page will do no good.
  • Loading branch information
garbear committed Jan 6, 2012
1 parent 373ab27 commit 59793de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Facebook/FacebookHooks.php
Expand Up @@ -380,7 +380,7 @@ public static function PersonalUrls( &$personal_urls, &$title ) {
}
$personal_urls['facebook'] = array(
'text' => wfMsg( 'facebook-connect' ),
'href' => SpecialPage::getTitleFor('Connect')->getLocalUrl('returnto=' . $title->getPrefixedURL()),
'href' => '#', # SpecialPage::getTitleFor('Connect')->getLocalUrl('returnto=' . $title->getPrefixedURL()),
'class' => 'mw-facebook-logo',
'active' => $title->isSpecial( 'Connect' ),
);
Expand Down

0 comments on commit 59793de

Please sign in to comment.