Skip to content

Commit 1a3dfaf

Browse files
author
Mark Scherer
committed
Cleanup
1 parent dac8a04 commit 1a3dfaf

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

Model/CronTask.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,14 @@ class CronTask extends QueueAppModel {
2121

2222
public $validate = [
2323
'jobtype' => [
24-
'notempty' => [
25-
'rule' => ['notempty'],
24+
'notEmpty' => [
25+
'rule' => ['notEmpty'],
2626
'message' => 'valErrMandatoryField',
2727
],
2828
],
2929
'name' => [
30-
'notempty' => [
31-
'rule' => ['notempty'],
30+
'notEmpty' => [
31+
'rule' => ['notEmpty'],
3232
'message' => 'valErrMandatoryField',
3333
'last' => true
3434
],
@@ -39,8 +39,8 @@ class CronTask extends QueueAppModel {
3939
],
4040
],
4141
'title' => [
42-
'notempty' => [
43-
'rule' => ['notempty'],
42+
'notEmpty' => [
43+
'rule' => ['notEmpty'],
4444
'message' => 'valErrMandatoryField',
4545
'last' => true
4646
],

View/CronTasks/admin_index.ctp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ foreach ($cronTasks as $cronTask):
4242
<br />
4343
<?php
4444
if ($cronTask['CronTask']['notbefore'] > date(FORMAT_DB_DATETIME)) {
45-
echo $this->Format->cIcon(ICON_WARNING, 'Achtung');
45+
echo $this->Format->cIcon(ICON_WARNING, ['title' => __('Warning')]);
4646
}
4747
?>
4848
</td>
@@ -66,4 +66,4 @@ foreach ($cronTasks as $cronTask):
6666
<ul>
6767
<li><?php echo $this->Html->link(__d('queue', 'Add %s', __d('queue', 'Cron Task')), ['action' => 'add']); ?></li>
6868
</ul>
69-
</div>
69+
</div>

0 commit comments

Comments
 (0)