mirror of
https://github.com/openvk/openvk
synced 2024-11-13 10:39:24 +03:00
parent
8c44721a1e
commit
33df6ef170
2 changed files with 12 additions and 1 deletions
|
@ -147,6 +147,9 @@ final class UserPresenter extends OpenVKPresenter
|
|||
|
||||
$user->setPseudo(empty($this->postParam("pseudo")) ? NULL : $this->postParam("pseudo"));
|
||||
$user->setStatus(empty($this->postParam("status")) ? NULL : $this->postParam("status"));
|
||||
$user->setHometown(empty($this->postParam("hometown")) ? NULL : $this->postParam("hometown"));
|
||||
|
||||
|
||||
if (strtotime($this->postParam("birthday")) < time())
|
||||
$user->setBirthday(strtotime($this->postParam("birthday")));
|
||||
|
||||
|
@ -185,7 +188,7 @@ final class UserPresenter extends OpenVKPresenter
|
|||
|
||||
$user->setCity(empty($this->postParam("city")) ? NULL : $this->postParam("city"));
|
||||
$user->setAddress(empty($this->postParam("address")) ? NULL : $this->postParam("address"));
|
||||
|
||||
|
||||
$website = $this->postParam("website") ?? "";
|
||||
if(empty($website))
|
||||
$user->setWebsite(NULL);
|
||||
|
|
|
@ -80,6 +80,14 @@
|
|||
<input type="text" name="status" value="{$user->getStatus()}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="120" valign="top">
|
||||
<span class="nobold">{_"hometown"}: </span>
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" name="hometown" value="{$user->getHometown()}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="120" valign="top">
|
||||
<span class="nobold">{_"relationship"}: </span>
|
||||
|
|
Loading…
Reference in a new issue