1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-03 13:17:24 +02:00

Fixed settings area in comment manager.

This commit is contained in:
CaMer0n
2009-11-23 04:03:40 +00:00
parent 70fa5dbb71
commit 510bda0f68

View File

@@ -11,8 +11,8 @@
| GNU General Public License (http://gnu.org). | GNU General Public License (http://gnu.org).
| |
| $Source: /cvs_backup/e107_0.8/e107_admin/comment.php,v $ | $Source: /cvs_backup/e107_0.8/e107_admin/comment.php,v $
| $Revision: 1.21 $ | $Revision: 1.22 $
| $Date: 2009-11-18 01:04:25 $ | $Date: 2009-11-23 04:03:40 $
| $Author: e107coders $ | $Author: e107coders $
+----------------------------------------------------------------------------+ +----------------------------------------------------------------------------+
*/ */
@@ -23,6 +23,8 @@ if (!getperms("B"))
exit; exit;
} }
include_lan(e_LANGUAGEDIR.e_LANGUAGE.'/admin/lan_prefs.php');
class comments_admin extends e_admin_dispatcher class comments_admin extends e_admin_dispatcher
{ {
@@ -98,12 +100,17 @@ class comments_admin_ui extends e_admin_ui
// optional, if $pluginName == 'core', core prefs will be used, else e107::getPluginConfig($pluginName); // optional, if $pluginName == 'core', core prefs will be used, else e107::getPluginConfig($pluginName);
protected $prefs = array( protected $prefs = array(
'pref_type' => array('title'=> 'type', 'type'=>'text'), 'anon_post' => array('title'=>PRFLAN_32, 'type'=>'boolean'),
'pref_folder' => array('title'=> 'folder', 'type' => 'boolean'), 'comments_icon' => array('title'=>PRFLAN_89, 'type'=>'boolean'),
'pref_name' => array('title'=> 'name', 'type' => 'text') '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')
); );
} }
//TODO Block and Unblock buttons, moderated comments? //TODO Block and Unblock buttons, moderated comments?