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

Fix typo and make tab navigation always visible

This commit fixes a typo that prevented using the module and also makes
tab navigation visible even when active tab is empty.

Fixes processwire/processwire-issues#95
This commit is contained in:
teppokoivula
2016-11-26 20:42:45 +02:00
parent 332dbb317e
commit a8efd4c04b

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);