mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
do not allow categories to be locked by accident (Bug #14548)
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@8898 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
dd75418c4a
commit
0b0da7b333
1 changed files with 4 additions and 1 deletions
|
@ -154,8 +154,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