diff --git a/include/ajax.tasks.php b/include/ajax.tasks.php index b2361b2d6c715d6d44499900155e72753620aba5..638f6982d8a1dcf14a3c4686490a347a5c00c086 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 88405bc1277ba6138eec1cceb7372df25a6c7ce3..a41bda3bafe825fbcd33dd5a114d8386d471c5ea 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>';