Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
oceatoon committed Mar 5, 2015
2 parents d8693d4 + 7c3c831 commit e141278
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
11 changes: 10 additions & 1 deletion ph/protected/controllers/user/SaveUserAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,16 @@ public function run()
)));
}
}

//Social Network info
$socialNetwork = array();
if (isset($_POST["twitterAccount"])) $socialNetwork["twitterAccount"] = $_POST["twitterAccount"];
if (isset($_POST["facebookAccount"])) $socialNetwork["facebookAccount"] = $_POST["facebookAccount"];
if (isset($_POST["gplusAccount"])) $socialNetwork["gplusAccount"] = $_POST["gplusAccount"];
if (isset($_POST["gitHubAccount"])) $socialNetwork["gitHubAccount"] = $_POST["gitHubAccount"];
if (isset($_POST["linkedInAccount"])) $socialNetwork["linkedInAccount"] = $_POST["linkedInAccount"];
if (isset($_POST["skypeAccount"])) $socialNetwork["skypeAccount"] = $_POST["skypeAccount"];
$newInfos["socialNetwork"] = $socialNetwork;

PHDB::update(PHType::TYPE_CITOYEN,
array("email" => $email),
array('$set' => $newInfos )
Expand Down
2 changes: 1 addition & 1 deletion ph/protected/models/PHType.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ class PHType
/*
convert to Json Ld
const TYPE_CITOYEN = "persons";
const TYPE_GROUPS = "organisations";
const TYPE_GROUPS = "organizations";
const TYPE_ASSOCIATION = "NGO";
const TYPE_ENTREPRISE = "LocalBusiness";
const TYPE_COLLECTIVITE = "GovernmentOrganization";
Expand Down

0 comments on commit e141278

Please sign in to comment.