mirror of
https://github.com/openvk/openvk
synced 2024-12-22 16:42:32 +03:00
Correct the code style in the profile deactivation function
This commit is contained in:
parent
b1ce106e4c
commit
42bba82941
4 changed files with 3 additions and 6 deletions
|
@ -971,7 +971,7 @@ class User extends RowModel
|
|||
|
||||
function isDeleted(): bool
|
||||
{
|
||||
if ($this->getRecord()->deleted == 1)
|
||||
if($this->getRecord()->deleted == 1)
|
||||
return TRUE;
|
||||
else
|
||||
return FALSE;
|
||||
|
@ -979,7 +979,7 @@ class User extends RowModel
|
|||
|
||||
function isDeactivated(): bool
|
||||
{
|
||||
if ($this->getDeactivationDate()->timestamp() > time())
|
||||
if($this->getDeactivationDate()->timestamp() > time())
|
||||
return TRUE;
|
||||
else
|
||||
return FALSE;
|
||||
|
|
|
@ -331,6 +331,5 @@ final class AuthPresenter extends OpenVKPresenter
|
|||
$this->user->identity->reactivate();
|
||||
|
||||
$this->redirect("/", 2);
|
||||
exit;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -282,7 +282,6 @@ final class UserPresenter extends OpenVKPresenter
|
|||
$user->toggleSubscription($this->user->identity);
|
||||
|
||||
$this->redirect("/id" . $user->getId());
|
||||
exit;
|
||||
}
|
||||
|
||||
function renderSetAvatar(): void
|
||||
|
@ -506,7 +505,6 @@ final class UserPresenter extends OpenVKPresenter
|
|||
$this->user->identity->deactivate($reason);
|
||||
|
||||
$this->redirect("/");
|
||||
exit;
|
||||
}
|
||||
|
||||
function renderTwoFactorAuthSettings(): void
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
<div class="page_status" style="color: #AAA;">{_profile_deactivated_status}</div>
|
||||
</div>
|
||||
</div>
|
||||
<center style="color: #AAA;margin: 40px 0;font-size: 13px;">
|
||||
<center style="color: #AAA; margin: 40px 0; font-size: 13px;">
|
||||
{_profile_deactivated_info|noescape}
|
||||
</center>
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue