Minor improvements (#1406)

* Minor improvements

* Update viewtopic.tpl

* Update page_footer.php

* Update admin_forums.php

* Update CHANGELOG.md
This commit is contained in:
Roman Kelesidis 2024-02-14 20:44:13 +07:00 committed by GitHub
commit 87034e3ad8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 5 additions and 14 deletions

View file

@ -54,16 +54,7 @@ if (isset($_REQUEST['addforum']) || isset($_REQUEST['addcategory'])) {
}
// Check for demo mode
if (IN_DEMO_MODE && in_array($mode, [
// Category
'editcat',
'modcat',
'deletecat',
// Forum
'editforum',
'modforum',
'deleteforum'
])) {
if (IN_DEMO_MODE && in_array($mode, ['deletecat', 'deleteforum'])) {
bb_die($lang['CANT_EDIT_IN_DEMO_MODE']);
}