mirror of
https://github.com/processwire/processwire.git
synced 2025-08-11 01:04:16 +02:00
Bump version to 3.0.80
This commit is contained in:
@@ -45,7 +45,7 @@ class ProcessWire extends Wire {
|
||||
* Reversion revision number
|
||||
*
|
||||
*/
|
||||
const versionRevision = 79;
|
||||
const versionRevision = 80;
|
||||
|
||||
/**
|
||||
* Version suffix string (when applicable)
|
||||
|
@@ -21,8 +21,8 @@ class ProcessCommentsManager extends Process {
|
||||
*/
|
||||
public static function getModuleInfo() {
|
||||
return array(
|
||||
'title' => 'Comments',
|
||||
'summary' => 'Manage comments in your site outside of the page editor.',
|
||||
'title' => __('Comments', __FILE__),
|
||||
'summary' => __('Manage comments in your site outside of the page editor.', __FILE__),
|
||||
'version' => 7,
|
||||
'author' => 'Ryan Cramer',
|
||||
'icon' => 'comments',
|
||||
@@ -82,6 +82,14 @@ class ProcessCommentsManager extends Process {
|
||||
*/
|
||||
protected $headline = '';
|
||||
|
||||
/**
|
||||
* Translated 'All' label
|
||||
*
|
||||
* @var string
|
||||
*
|
||||
*/
|
||||
protected $labelAll = 'All';
|
||||
|
||||
/**
|
||||
* Initialize the comments manager and define the statuses
|
||||
*
|
||||
@@ -101,6 +109,7 @@ class ProcessCommentsManager extends Process {
|
||||
Comment::statusSpam => $this->_('Spam'),
|
||||
Comment::statusDelete => $this->_('Delete')
|
||||
);
|
||||
$this->labelAll = $this->_('All');
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -173,7 +182,8 @@ class ProcessCommentsManager extends Process {
|
||||
$session->redirect($this->wire('page')->url . "list/$field->name/all/");
|
||||
}
|
||||
$statusNum = array_search($status, $this->statuses);
|
||||
$headline = $statusNum !== false ? $this->statusTranslations[$statusNum] : ucfirst($status);
|
||||
$headline = $statusNum !== false ? $this->statusTranslations[$statusNum] : $status;
|
||||
if($headline === 'all') $headline = $this->labelAll;
|
||||
$this->breadcrumb('../', $field->getLabel());
|
||||
|
||||
$limit = (int) $this->wire('input')->get('limit');
|
||||
@@ -567,7 +577,7 @@ class ProcessCommentsManager extends Process {
|
||||
$wireTabs = $this->modules->get('JqueryWireTabs');
|
||||
$tabs = array();
|
||||
$class = $this->input->urlSegment3 == 'all' ? 'on' : '';
|
||||
$tabs["tabStatusAll"] = "<a class='$class' href='../all/'>" . $this->_('All') . "</a>";
|
||||
$tabs["tabStatusAll"] = "<a class='$class' href='../all/'>" . $this->labelAll . "</a>";
|
||||
|
||||
foreach($this->statuses as $status => $name) {
|
||||
if($status == Comment::statusDelete) continue;
|
||||
|
Reference in New Issue
Block a user