Commit 7e1b4be5 authored by Andrew Robert Nicols's avatar Andrew Robert Nicols
Browse files

Make use of language strings when a view can't be found.


Signed-off-by: default avatarAndrew Robert Nicols <andrew.nicols@luns.net.uk>
parent c243ea69
......@@ -116,8 +116,8 @@ class View {
if (!empty($id)) {
$tempdata = get_record('view','id',$id);
if (empty($tempdata)) {
throw new ViewNotFoundException("View with id $id not found");
}
throw new ViewNotFoundException(get_string('viewnotfound', 'error', $id));
}
if (!empty($data)) {
$data = array_merge((array)$tempdata, $data);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment