diff --git a/admin/admin_permissions.php b/admin/admin_permissions.php index edd1729a..9250261e 100644 --- a/admin/admin_permissions.php +++ b/admin/admin_permissions.php @@ -107,7 +107,7 @@ public function render() $tray->addElement(new XoopsFormButton('', 'submit', _SUBMIT, 'submit')); $tray->addElement(new XoopsFormButton('', 'reset', _CANCEL, 'reset')); $this->addElement($tray); - $ret = '

' . $this->getTitle() . '

' . $this->_permDesc . '
'; + $ret = '
' . $this->getTitle() . '
' . $this->_permDesc . '
'; $ret .= "
getExtra() . ">\n\n"; $elements = $this->getElements(); $hidden = ''; @@ -233,8 +233,8 @@ public function _renderOptionTree(&$tree, $option, $prefix, $parentIds = []) foreach (array_keys($glist) as $i) { $selected = !empty($perm_template[$i]) ? array_keys($perm_template[$i]) : []; $ret_ele = ''; - $ret_ele .= '
' . $glist[$i] . ''; - $ret_ele .= '
'; + $ret_ele .= '
'; + $ret_ele .= '
'; $ii = 0; $option_ids = []; foreach ($perms as $perm) { @@ -257,7 +257,7 @@ public function _renderOptionTree(&$tree, $option, $prefix, $parentIds = []) $tray->addElement(new XoopsFormHidden('action', 'template_save')); $tray->addElement(new XoopsFormButton('', 'submit', _SUBMIT, 'submit')); $tray->addElement(new XoopsFormButton('', 'reset', _CANCEL, 'reset')); - $ret = '

' . _AM_NEWBB_PERM_TEMPLATE . '

' . _AM_NEWBB_PERM_TEMPLATE_DESC . '


'; + $ret = '
' . _AM_NEWBB_PERM_TEMPLATE . '
' . _AM_NEWBB_PERM_TEMPLATE_DESC . '
'; $ret .= "\n
\n"; $ret .= implode("\n", $elements); $ret .= '
'; @@ -267,9 +267,9 @@ public function _renderOptionTree(&$tree, $option, $prefix, $parentIds = []) echo $ret; include_once __DIR__ . '/admin_footer.php'; break; - + case 'template_save': - // $res = $newbbpermHandler->setTemplate($_POST['perms'], $groupid = 0); + // $res = $newbbpermHandler->setTemplate($_POST['perms'], $groupid = 0); $res = $newbbpermHandler->setTemplate(Request::getArray('perms', '', 'POST'), $groupid = 0); if ($res) { redirect_header('admin_permissions.php', 2, _AM_NEWBB_PERM_TEMPLATE_CREATED);