1
0
mirror of https://github.com/e107inc/e107.git synced 2025-04-19 20:21:51 +02:00

Fixes #4837 - Fix Featurebox LAN issue

See 968a6d0a4f
This commit is contained in:
Moc 2022-09-05 20:14:12 +02:00
parent a62f5985fd
commit 86b234fd11
No known key found for this signature in database
GPG Key ID: AAEA3CC2C5A308F2
2 changed files with 4 additions and 4 deletions

View File

@ -87,7 +87,7 @@ class fb_category_ui extends e_admin_ui
// FIXME lan
if($this->getModel()->get('fb_category_template') === 'unassigned')
{
e107::getMessage()->addError("<strong>".FBLAN_INSTALL_03."</strong> is system category and can't be modified.", 'default', true);
e107::getMessage()->addError("<strong>".FBLAN_34."</strong> is system category and can't be modified.", 'default', true);
$this->redirect('list');
}
}
@ -98,7 +98,7 @@ class fb_category_ui extends e_admin_ui
{
$protocol = (isset($_SERVER['SERVER_PROTOCOL']) ? $_SERVER['SERVER_PROTOCOL'] : 'HTTP/1.0');
header($protocol.': 403 Forbidden', true, 403);
echo "'".FBLAN_INSTALL_03."' is system category and can't be modified.";
echo "'".FBLAN_34."' is system category and can't be modified.";
exit;
}
}
@ -117,7 +117,7 @@ class fb_category_ui extends e_admin_ui
if($data['fb_category_template'] === 'unassigned')
{
// FIXME lan
$this->getTreeModel()->addMessageError("<strong>".FBLAN_INSTALL_03."</strong> is system category and can't be deleted.");
$this->getTreeModel()->addMessageError("<strong>".FBLAN_34."</strong> is system category and can't be deleted.");
return false;
}

View File

@ -122,7 +122,7 @@ class featurebox_setup
{
$query = array();
$query['fb_category_id'] = 0;
$query['fb_category_title'] = FBLAN_INSTALL_03;
$query['fb_category_title'] = FBLAN_34;
$query['fb_category_template'] = 'unassigned';
$query['fb_category_random'] = 0;
$query['fb_category_class'] = e_UC_NOBODY;