mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 05:43:55 -07:00
Minor improvements (#1406)
* Minor improvements * Update viewtopic.tpl * Update page_footer.php * Update admin_forums.php * Update CHANGELOG.md
This commit is contained in:
parent
059bc61547
commit
87034e3ad8
5 changed files with 5 additions and 14 deletions
|
@ -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']);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue