1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-02 20:57:26 +02:00

newforumposts_main #90 return message consistency

This commit is contained in:
Tijn Kuyper
2013-02-09 12:48:33 +01:00
parent ec8c543751
commit ddc7927a8d

View File

@@ -2,16 +2,12 @@
/* /*
* e107 website system * 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 * Released under the terms and conditions of the
* GNU General Public License (http://www.gnu.org/licenses/gpl.txt) * GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
* *
* * $URL$
* * $Id$
* $Source: /cvs_backup/e107_0.8/e107_plugins/newforumposts_main/admin_config.php,v $
* $Revision$
* $Date$
* $Author$
*/ */
require_once ('../../class2.php'); require_once ('../../class2.php');
@@ -25,8 +21,11 @@ require_once (e_HANDLER.'userclass_class.php');
include_lan(e_PLUGIN.'newforumposts_main/languages/'.e_LANGUAGE.'.php'); include_lan(e_PLUGIN.'newforumposts_main/languages/'.e_LANGUAGE.'.php');
require_once (e_ADMIN.'auth.php'); require_once (e_ADMIN.'auth.php');
require_once (e_HANDLER.'message_handler.php');
$frm = e107::getForm(); $frm = e107::getForm();
$mes = e107::getMessage();
if(isset($_POST['updatesettings'])) if(isset($_POST['updatesettings']))
{ {
@@ -37,14 +36,16 @@ if(isset($_POST['updatesettings']))
$pref['nfp_posts'] = vartrue($_POST['nfp_posts']); $pref['nfp_posts'] = vartrue($_POST['nfp_posts']);
$pref['nfp_layer_height'] = ($_POST['nfp_layer_height'] ? $_POST['nfp_layer_height'] : 200); $pref['nfp_layer_height'] = ($_POST['nfp_layer_height'] ? $_POST['nfp_layer_height'] : 200);
save_prefs(); save_prefs();
$message = "".NFPM_L13.""; //$message = "".NFPM_L13."";
} }
/*
if(vartrue($message)) if(vartrue($message))
{ {
$ns->tablerender("", "<div style='text-align:center'><b>$message</b></div>"); $ns->tablerender("", "<div style='text-align:center'><b>$message</b></div>");
} }
*/
$ns->tablerender($caption, $mes->render() . $text);
$text = " $text = "
<form method='post' action='".e_SELF."?".e_QUERY."' id='menu_conf_form'> <form method='post' action='".e_SELF."?".e_QUERY."' id='menu_conf_form'>