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.format.php b/include/class.format.php index 220f207426ccaa71089cab46b82467b3dfd7e1b0..1ec32b733f5c4c2c671dbdc8773f0cfaca299fbf 100644 --- a/include/class.format.php +++ b/include/class.format.php @@ -68,7 +68,7 @@ class Format { //Wrapper for utf-8 encoding. function utf8encode($text, $charset=null) { - return Format::enecode($text, $charset, 'utf-8'); + return Format::encode($text, $charset, 'utf-8'); } function phone($phone) { diff --git a/include/class.ticket.php b/include/class.ticket.php index d94a3818e1247a1b699bdfd2825787d3f5c2cb9c..9dd35529defaa69a4fda345c840fb67271046a8a 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']; }