diff --git a/include/api.cron.php b/include/api.cron.php index 912fff41090df4887598a3b7f6cd0f915910b73b..32d1b0aefb25b2ac546af5188191f5e896410b4f 100644 --- a/include/api.cron.php +++ b/include/api.cron.php @@ -6,7 +6,7 @@ class CronApiController extends ApiController { function execute() { - if(!($key=$this->requireApiKey()) || !$key->canExecuteCronJob()) + if(!($key=$this->requireApiKey()) || !$key->canExecuteCron()) return $this->exerr(401, 'API key not authorized'); $this->run(); diff --git a/include/class.api.php b/include/class.api.php index dd0706ceaa374b5ee35c065ce9066590c53e4e05..6fc0445e5ef66c2da6eaf925af5027c52a6c0fdb 100644 --- a/include/class.api.php +++ b/include/class.api.php @@ -71,7 +71,7 @@ class API { return ($this->ht['can_create_tickets']); } - function canExecuteCronjob() { + function canExecuteCron() { return ($this->ht['can_exec_cron']); } diff --git a/include/class.ticket.php b/include/class.ticket.php index a7a16e4644ba357db5f619ec50760de71de60a20..7a8e514fc8399ea8ef62052cde4ec6ae5b23315a 100644 --- a/include/class.ticket.php +++ b/include/class.ticket.php @@ -261,7 +261,7 @@ class Ticket { return $this->duedate; } - function getSLADuedate() { + function getSLADueDate() { return $this->ht['sla_duedate']; }