mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 22:28:51 +00:00
do not allow categories to be locked by accident (Bug #14548)
git-svn-id: file:///svn/phpbb/trunk@8899 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
8fd7f16642
commit
6f0ea3c9d2
1 changed files with 4 additions and 1 deletions
|
@ -153,8 +153,11 @@ class acp_forums
|
||||||
if ($forum_data['forum_type'] == FORUM_LINK)
|
if ($forum_data['forum_type'] == FORUM_LINK)
|
||||||
{
|
{
|
||||||
$forum_data['display_on_index'] = request_var('link_display_on_index', false);
|
$forum_data['display_on_index'] = request_var('link_display_on_index', false);
|
||||||
|
}
|
||||||
|
|
||||||
// Linked forums are not able to be locked...
|
// Linked forums and categories are not able to be locked...
|
||||||
|
if ($forum_data['forum_type'] == FORUM_LINK || $forum_data['forum_type'] == FORUM_CAT)
|
||||||
|
{
|
||||||
$forum_data['forum_status'] = ITEM_UNLOCKED;
|
$forum_data['forum_status'] = ITEM_UNLOCKED;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue