getPref(); if(!is_array($temp['comment_caption'])) { $temp['comment_caption'] = array(); } $tp = e107::getParser(); foreach($_POST as $key=>$value) { //if($key == "comment_caption") // { // $temp['comment_caption'][e_LANGUAGE] = $tp->toDB($value); // continue; // } if ($value != LAN_UPDATE) { $temp[$tp->toDB($key)] = $tp->toDB($value); } } if (!$_POST['comment_title']) { $temp['comment_title'] = 0; } $menu_config->setPref($temp); if($menu_config->save(false)) { $mes->addSuccess(LAN_SAVED); } /*if ($admin_log->logArrayDiffs($old, $menu_config->getPref(), 'MISC_04')) { } else { $mes->addInfo(LAN_NO_CHANGE); }*/ } $frm = e107::getForm(); $commentTmp = $menu_config->get('comment_caption'); $commentCaption = (!empty($commentTmp[e_LANGUAGE])) ? $commentTmp[e_LANGUAGE] : $commentTmp; $text = "
"; e107::getRender()->tablerender(CM_L8, $mes->render() . $text); require_once(e_ADMIN."footer.php");