From 1a3dfafcde5c36d9610df95e5b28502d1da72528 Mon Sep 17 00:00:00 2001 From: Mark Scherer Date: Sun, 10 Jan 2016 03:59:02 +0100 Subject: [PATCH] Cleanup --- Model/CronTask.php | 12 ++++++------ View/CronTasks/admin_index.ctp | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Model/CronTask.php b/Model/CronTask.php index 5c5b0057..58916505 100644 --- a/Model/CronTask.php +++ b/Model/CronTask.php @@ -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 ], @@ -39,8 +39,8 @@ class CronTask extends QueueAppModel { ], ], 'title' => [ - 'notempty' => [ - 'rule' => ['notempty'], + 'notEmpty' => [ + 'rule' => ['notEmpty'], 'message' => 'valErrMandatoryField', 'last' => true ], diff --git a/View/CronTasks/admin_index.ctp b/View/CronTasks/admin_index.ctp index 4acc4eeb..9b9e9aaa 100644 --- a/View/CronTasks/admin_index.ctp +++ b/View/CronTasks/admin_index.ctp @@ -42,7 +42,7 @@ foreach ($cronTasks as $cronTask):
date(FORMAT_DB_DATETIME)) { - echo $this->Format->cIcon(ICON_WARNING, 'Achtung'); + echo $this->Format->cIcon(ICON_WARNING, ['title' => __('Warning')]); } ?> @@ -66,4 +66,4 @@ foreach ($cronTasks as $cronTask): - \ No newline at end of file +