diff --git a/e107_plugins/comment_menu/config.php b/e107_plugins/comment_menu/config.php index 41c1fac37..af3792afa 100644 --- a/e107_plugins/comment_menu/config.php +++ b/e107_plugins/comment_menu/config.php @@ -2,18 +2,17 @@ /* * e107 website system * - * Copyright (C) 2008-2009 e107 Inc (e107.org) + * Copyright (C) 2008-2013 e107 Inc (e107.org) * Released under the terms and conditions of the * GNU General Public License (http://www.gnu.org/licenses/gpl.txt) * * Plugin Administration - Comment menu * - * $Source: /cvs_backup/e107_0.8/e107_plugins/comment_menu/config.php,v $ - * $Revision$ - * $Date$ - * $Author$ * -*/ + * $URL$ + * $Id$ + */ + $eplug_admin = TRUE; require_once("../../class2.php"); require_once(e_HANDLER."userclass_class.php"); @@ -25,8 +24,12 @@ if (!getperms("1")) exit() ; } require_once(e_ADMIN."auth.php"); - +require_once(e_HANDLER.'form_handler.php'); +require_once(e_HANDLER.'message_handler.php'); +$frm = e107::getForm(); +$mes = e107::getMessage(); $menu_config = e107::getConfig('menu'); + if (isset($_POST['update_menu'])) { $temp = $old = $menu_config->getPref(); @@ -34,7 +37,7 @@ if (isset($_POST['update_menu'])) $tp = e107::getParser(); while (list($key, $value) = each($_POST)) { - if ($value != CM_L9) + if ($value != LAN_UPDATE) { $temp[$tp->toDB($key)] = $tp->toDB($value); } @@ -49,62 +52,54 @@ if (isset($_POST['update_menu'])) { if($menu_config->save(false)) { - e107::getMessage()->add(CM_L10, E_MESSAGE_SUCCESS); + $mes->addSuccess(); } } else { - e107::getMessage()->add(LAN_NO_CHANGE); + $mes->addInfo(LAN_NO_CHANGE); } } -// TODO - 0.8 aware markup, e_form usage -$text = "