getPref(); if(!is_array($temp['comment_caption'])) { $temp['comment_caption'] = array(); } $tp = e107::getParser(); while (list($key, $value) = each($_POST)) { 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(); } /*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 = "
".CM_L3.": ".$frm->renderElement('comment_caption',$commentCaption, array('type'=>'text','multilan'=>true))."
".CM_L4.":
".CM_L5.":
".CM_L6.":
".CM_L7.": get('comment_title') ? ' checked="checked"' : '')." />
".$frm->admin_button('update_menu', LAN_UPDATE, 'update')."
"; $ns->tablerender(CM_L8, $mes->render() . $text); require_once(e_ADMIN."footer.php"); ?>