1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-15 11:14:12 +02:00

Merge branch 'teppokoivula-feature-comments-manager-tweaks' into dev

This commit is contained in:
Ryan Cramer
2016-11-29 06:00:50 -05:00

View File

@@ -23,7 +23,7 @@ class ProcessCommentsManager extends Process {
return array(
'title' => 'Comments',
'summary' => 'Manage comments in your site outside of the page editor.',
'version' => 6,
'version' => 7,
'author' => 'Ryan Cramer',
'icon' => 'comments',
'requires' => 'FieldtypeComments',
@@ -583,7 +583,7 @@ class ProcessCommentsManager extends Process {
if($cnt) {
$button = $this->modules->get('InputfieldSubmit');
$button->attr('name', 'processComments');
$buton->showInHeader();
$button->showInHeader();
$button = $button->render();
} else $button = '';
@@ -592,7 +592,11 @@ class ProcessCommentsManager extends Process {
}
if(!count($comments)) {
return "<h2>" . $this->_('None to display') . "</h2>";
return
"<form>" .
$tabsOut .
"<h2>" . $this->_('None to display') . "</h2>" .
"</form>";
}
$commentsHeader = $this->renderCommentsHeader($limit, $field->useVotes, $field->useStars);