From 27ca5f92dbb8d3d2969ae950293e3f5626960a9f Mon Sep 17 00:00:00 2001 From: Peter Rotich <peter@osticket.com> Date: Fri, 17 Mar 2017 13:53:52 +0000 Subject: [PATCH] Syntax Errors Hotfix Fixes syntax error introduced with commit 71a6b2a0 & 6e0ddf2e --- include/ajax.tasks.php | 2 +- include/staff/templates/task-preview.tmpl.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/ajax.tasks.php b/include/ajax.tasks.php index b2361b2d6..638f6982d 100644 --- a/include/ajax.tasks.php +++ b/include/ajax.tasks.php @@ -689,7 +689,7 @@ class TasksAjaxAPI extends AjaxController { $errors['err'] = $info['error'] = $m; else $info['warn'] = sprintf(__('Are you sure you want to change status of %s?'), - sprintf(__('this task')); + __('this task')); break; default: Http::response(404, __('Unknown status')); diff --git a/include/staff/templates/task-preview.tmpl.php b/include/staff/templates/task-preview.tmpl.php index 88405bc12..a41bda3ba 100644 --- a/include/staff/templates/task-preview.tmpl.php +++ b/include/staff/templates/task-preview.tmpl.php @@ -2,7 +2,7 @@ $error=$msg=$warn=null; if (!$task->checkStaffPerm($thisstaff)) - $warn.= __('You do not have access to %s'), __('this task'); + $warn.= sprintf(__('You do not have access to %s'), __('this task')); elseif ($task->isOverdue()) $warn.=' <span class="Icon overdueTicket">'.__('Marked overdue!').'</span>'; -- GitLab