Skip to content
Snippets Groups Projects
Commit f7830285 authored by Peter Rotich's avatar Peter Rotich
Browse files

Merge pull request #478 from protich/issue/476

Issue/476
parents 78334a25 c72fa613
Branches
Tags
No related merge requests found
...@@ -6,7 +6,7 @@ class CronApiController extends ApiController { ...@@ -6,7 +6,7 @@ class CronApiController extends ApiController {
function execute() { function execute() {
if(!($key=$this->requireApiKey()) || !$key->canExecuteCronJob()) if(!($key=$this->requireApiKey()) || !$key->canExecuteCron())
return $this->exerr(401, 'API key not authorized'); return $this->exerr(401, 'API key not authorized');
$this->run(); $this->run();
......
...@@ -71,7 +71,7 @@ class API { ...@@ -71,7 +71,7 @@ class API {
return ($this->ht['can_create_tickets']); return ($this->ht['can_create_tickets']);
} }
function canExecuteCronjob() { function canExecuteCron() {
return ($this->ht['can_exec_cron']); return ($this->ht['can_exec_cron']);
} }
......
...@@ -68,7 +68,7 @@ class Format { ...@@ -68,7 +68,7 @@ class Format {
//Wrapper for utf-8 encoding. //Wrapper for utf-8 encoding.
function utf8encode($text, $charset=null) { function utf8encode($text, $charset=null) {
return Format::enecode($text, $charset, 'utf-8'); return Format::encode($text, $charset, 'utf-8');
} }
function phone($phone) { function phone($phone) {
......
...@@ -261,7 +261,7 @@ class Ticket { ...@@ -261,7 +261,7 @@ class Ticket {
return $this->duedate; return $this->duedate;
} }
function getSLADuedate() { function getSLADueDate() {
return $this->ht['sla_duedate']; return $this->ht['sla_duedate'];
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment