} catch (UserNotFoundException $e) {
/* Let say we can identify a profile using the identifiers of its owner.
*/
- $user = User::getSilent($login);
- if ($user && $user->hasProfile()) {
- return $user->profile();
+ if (!($login instanceof PlUser)) {
+ $user = User::getSilent($login);
+ if ($user && $user->hasProfile()) {
+ return $user->profile();
+ }
}
return null;
}
{
global $globals;
+ if ($login instanceof User) {
+ $machin->id();
+ }
+
if ($login instanceof Profile) {
$this->_profile = $login;
$this->_profile_fetched = true;
$name = trim($name);
XDB::execute("INSERT INTO profile_name_search (particle, name, typeid, pid)
VALUES ({?}, {?}, {?}, {?})",
- $particle, $name, $sn['typeid'], $this->pid());
+ $particle, $name, $sn['typeid'], $page->pid());
}
}
XDB::execute("UPDATE profile_display
directory_name = {?}, short_name = {?}, sort_name = {?}
WHERE pid = {?}",
$this->public_name, $this->private_name, $this->directory_name,
- $this->short_name, $this->sort_name, $this->pid());
+ $this->short_name, $this->sort_name, $page->pid());
/*require_once('user.func.inc.php');
user_reindex(S::v('uid'));*/
}
<td>
<span class="titre">Date de naissance</span>
</td>
- <td><input type="text" {if $errors.birthdate}class="error"{/if} name="naissance" value="{$birthdate}" /></td>
+ <td><input type="text" {if $errors.birthdate}class="error"{/if} name="birthdate" value="{$birthdate}" /></td>
</tr>
<tr>
<td>