Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Scherer committed Jan 10, 2016
1 parent dac8a04 commit 1a3dfaf
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions Model/CronTask.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@ class CronTask extends QueueAppModel {

public $validate = [
'jobtype' => [
'notempty' => [
'rule' => ['notempty'],
'notEmpty' => [
'rule' => ['notEmpty'],
'message' => 'valErrMandatoryField',
],
],
'name' => [
'notempty' => [
'rule' => ['notempty'],
'notEmpty' => [
'rule' => ['notEmpty'],
'message' => 'valErrMandatoryField',
'last' => true
],
Expand All @@ -39,8 +39,8 @@ class CronTask extends QueueAppModel {
],
],
'title' => [
'notempty' => [
'rule' => ['notempty'],
'notEmpty' => [
'rule' => ['notEmpty'],
'message' => 'valErrMandatoryField',
'last' => true
],
Expand Down
4 changes: 2 additions & 2 deletions View/CronTasks/admin_index.ctp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ foreach ($cronTasks as $cronTask):
<br />
<?php
if ($cronTask['CronTask']['notbefore'] > date(FORMAT_DB_DATETIME)) {
echo $this->Format->cIcon(ICON_WARNING, 'Achtung');
echo $this->Format->cIcon(ICON_WARNING, ['title' => __('Warning')]);
}
?>
</td>
Expand All @@ -66,4 +66,4 @@ foreach ($cronTasks as $cronTask):
<ul>
<li><?php echo $this->Html->link(__d('queue', 'Add %s', __d('queue', 'Cron Task')), ['action' => 'add']); ?></li>
</ul>
</div>
</div>

0 comments on commit 1a3dfaf

Please sign in to comment.