From 510bda0f685e9e366c1e693d842d9c6717db09c6 Mon Sep 17 00:00:00 2001 From: CaMer0n Date: Mon, 23 Nov 2009 04:03:40 +0000 Subject: [PATCH] Fixed settings area in comment manager. --- e107_admin/comment.php | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/e107_admin/comment.php b/e107_admin/comment.php index a97bcbf33..5d6ef5cb6 100644 --- a/e107_admin/comment.php +++ b/e107_admin/comment.php @@ -11,8 +11,8 @@ | GNU General Public License (http://gnu.org). | | $Source: /cvs_backup/e107_0.8/e107_admin/comment.php,v $ -| $Revision: 1.21 $ -| $Date: 2009-11-18 01:04:25 $ +| $Revision: 1.22 $ +| $Date: 2009-11-23 04:03:40 $ | $Author: e107coders $ +----------------------------------------------------------------------------+ */ @@ -23,6 +23,8 @@ if (!getperms("B")) exit; } +include_lan(e_LANGUAGEDIR.e_LANGUAGE.'/admin/lan_prefs.php'); + class comments_admin extends e_admin_dispatcher { @@ -98,11 +100,16 @@ class comments_admin_ui extends e_admin_ui // optional, if $pluginName == 'core', core prefs will be used, else e107::getPluginConfig($pluginName); - protected $prefs = array( - 'pref_type' => array('title'=> 'type', 'type'=>'text'), - 'pref_folder' => array('title'=> 'folder', 'type' => 'boolean'), - 'pref_name' => array('title'=> 'name', 'type' => 'text') + + protected $prefs = array( + 'anon_post' => array('title'=>PRFLAN_32, 'type'=>'boolean'), + 'comments_icon' => array('title'=>PRFLAN_89, 'type'=>'boolean'), + 'nested_comments' => array('title'=>PRFLAN_88, 'type'=>'boolean'), + 'allowCommentEdit' => array('title'=>PRFLAN_90, 'type'=>'boolean'), + 'comments_disabled' => array('title'=>PRFLAN_161, 'type'=>'boolean'), + 'comments_emoticons' => array('title'=>PRFLAN_166, 'type'=>'boolean') ); + }