dev #41

Merged
lopar merged 29 commits from dev into master 2021-05-25 15:28:14 +00:00
Showing only changes of commit 1de0d465eb - Show all commits

View File

@ -172,14 +172,14 @@ INFO;
$effects = new EffectsModel($this->id); $effects = new EffectsModel($this->id);
if ($this->block && (!$this->watcherIsAdmin || !$this->watcherIsModerator)) { if ($this->block && (!$this->watcherIsAdmin || !$this->watcherIsModerator)) {
throw new GameException('<span class="error">Персонаж ' . $this->login . ' заблокирован!</span>'); echo "<span class='error'>Персонаж $this->login заблокирован!</span>";
} elseif ($effects->getHideUserInfoStatus() && (!$this->watcherIsAdmin || !$this->watcherIsModerator)) { } elseif ($effects->getHideUserInfoStatus() && (!$this->watcherIsAdmin || !$this->watcherIsModerator)) {
if ($effects->getHideUserInfoStatus() == -1) { if ($effects->getHideUserInfoStatus() == -1) {
$date = 'навсегда'; $date = 'навсегда';
} else { } else {
$date = 'до' . date('d.m.Y', strtotime($effects->getHideUserInfoStatus())); $date = 'до' . date('d.m.Y', strtotime($effects->getHideUserInfoStatus()));
} }
throw new GameException('<span class="error">Персонаж ' . $this->login . ' обезличен ' . $date . '.</span>'); echo "<span class='error'>Персонаж $this->login обезличен $date.</span>";
} else { } else {
$this->Info(); $this->Info();
} }