Skip to content

Commit

Permalink
Merge branch 'master' of git://github.com/StartupAPI/users
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergey Chernyshev committed Jun 18, 2014
2 parents c89bee4 + 4e76a25 commit 76a1768
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion classes/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -518,6 +518,7 @@ private function init() {
}

$invitation_account = null;
$plan = null;
if (!is_null($invitation)) {
$invitation_account = $invitation->getAccount();

Expand All @@ -528,11 +529,12 @@ private function init() {
) {
$invitation_account->addUser($this);
}

$plan = $invitation->getPlan();
}

$new_user_account = null;
if (is_null($invitation_account) || UserConfig::$createPersonalAccountsIfInvitedToGroupAccount) {
$plan = $invitation->getPlan();
if ($plan) {
$new_user_account = Account::createAccount($this->name, $plan->getSlug(), null, $this, Account::ROLE_ADMIN);
} else {
Expand Down
Binary file modified modules/facebook/facebook-sprite.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions modules/facebook/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -240,11 +240,11 @@ public function renderAutoLogoutForm() {
private function renderForm($action, $form) {
if ($form == 'login') {
$formsubmit = 'login';
$buttonspritestyle = 'background-position: 0px -22px; width: 198px; height: 22px;';
$buttonspritestyle = 'background-position: 0px -22px; width: 147px; height: 22px;';
$buttontitle = 'Login with Facebook';
} else if ($form == 'register') {
$formsubmit = 'register';
$buttonspritestyle = 'background-position: 0px 0px; width: 250px; height: 22px;';
$buttonspritestyle = 'background-position: 0px 0px; width: 200px; height: 22px;';
$buttontitle = 'Quick Sign-up using Facebook';
} else if ($form == 'connect') {
$formsubmit = 'save';
Expand Down
Binary file modified modules/linkedin/linkedin-small.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 76a1768

Please sign in to comment.