Code cleanup
This commit is contained in:
parent
4252246d1d
commit
2b6466b58c
@ -409,23 +409,23 @@ if (isset($_GET['do']) && $isModerator == true) {
|
||||
$par_top = db::c()->query('SELECT `closepal`, `id` FROM `forum` WHERE `id` = "?s"', $_GET['topic'])->fetch_row();
|
||||
if (((int)$par_top[1] != 0) || ((int)$_GET['konftop'] > 0)) {
|
||||
if ($row['close'] == 1) {
|
||||
$close = "<a href='?topic={$_GET['topic']}&do=open'>Открыть</a>";
|
||||
$close = "<a href='?topic={$_GET['topic']}&do=open'>🔓Открыть</a>";
|
||||
$closed = 1;
|
||||
$closepal = $row['closepal'];
|
||||
} else {
|
||||
$close = "<a href='?topic={$_GET['topic']}&do=close'>Закрыть</a>";
|
||||
$close = "<a href='?topic={$_GET['topic']}&do=close'>🔒Закрыть</a>";
|
||||
}
|
||||
if ($row['fix'] == 1) {
|
||||
$fix = "<a href='?topic={$_GET['topic']}&do=unfix'>Открепить</a>";
|
||||
} else {
|
||||
$fix = "<a href='?topic={$_GET['topic']}&do=fix'>Прикрепить</a>";
|
||||
$fix = "<a href='?topic={$_GET['topic']}&do=fix'>📌Прикрепить</a>";
|
||||
}
|
||||
|
||||
if ($isModerator): ?>
|
||||
<br>
|
||||
<div align="right">
|
||||
<small>
|
||||
<img src="i/close2.gif"><?= $close ?> | <img src="i/ico/fixed.gif"><?= $fix ?>
|
||||
<?= $close ?> | <?= $fix ?>
|
||||
<br><i>Перемещение тем не работает.</i>
|
||||
</small>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user