mirror of
https://github.com/silverstripe/silverstripe-comments
synced 2024-10-22 11:05:49 +02:00
MINOR: removed debug
This commit is contained in:
parent
5dec31c84f
commit
05aa315392
@ -23,15 +23,15 @@ class Commenting {
|
|||||||
* @var array default configuration values
|
* @var array default configuration values
|
||||||
*/
|
*/
|
||||||
private static $default_config = array(
|
private static $default_config = array(
|
||||||
'require_login' => false, // boolean, whether a user needs to login
|
'require_login' => false, // boolean, whether a user needs to login
|
||||||
'required_permission' => false, // required permission to comment (or array of permissions)
|
'required_permission' => false, // required permission to comment (or array of permissions)
|
||||||
'use_ajax_commenting' => true, // use ajax to post comments.
|
'use_ajax_commenting' => true, // use ajax to post comments.
|
||||||
'show_comments_when_disabled' => false, // when comments are disabled should we show older comments (if available)
|
'show_comments_when_disabled' => false, // when comments are disabled should we show older comments (if available)
|
||||||
'order_comments_by' => "\"Created\" DESC",
|
'order_comments_by' => "\"Created\" DESC",
|
||||||
'comments_per_page' => 10,
|
'comments_per_page' => 10,
|
||||||
'comments_holder_id' => "comments-holder", // id for the comments holder
|
'comments_holder_id' => "comments-holder", // id for the comments holder
|
||||||
'comment_permalink_prefix' => "comment-", // id prefix for each comment. If needed make this different
|
'comment_permalink_prefix' => "comment-", // id prefix for each comment. If needed make this different
|
||||||
'require_moderation' => false
|
'require_moderation' => false
|
||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -88,7 +88,6 @@ class CommentsExtension extends DataObjectDecorator {
|
|||||||
|
|
||||||
$form = ($enabled) ? $controller->CommentsForm() : false;
|
$form = ($enabled) ? $controller->CommentsForm() : false;
|
||||||
|
|
||||||
Debug::show(Controller::curr()->ID);
|
|
||||||
// a little bit all over the show but to ensure a slightly easier upgrade for users
|
// a little bit all over the show but to ensure a slightly easier upgrade for users
|
||||||
// return back the same variables as previously done in comments
|
// return back the same variables as previously done in comments
|
||||||
return $interface->process(new ArrayData(array(
|
return $interface->process(new ArrayData(array(
|
||||||
|
Loading…
Reference in New Issue
Block a user