fix lng() usage in RunApiCommand-class; fix title-tag content if newerversion=0 in update-check

Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann
2022-05-26 13:29:26 +02:00
parent 282e6f4cd7
commit 66c3694809
4 changed files with 9 additions and 6 deletions

View File

@@ -93,17 +93,17 @@ class Froxlor extends ApiCommand
return $this->response([
'isnewerversion' => 0,
'version' => $this->version,
'message' => $errmsg,
'message' => '',
'link' => '',
'additional_info' => ''
'additional_info' => $errmsg
]);
} else {
return $this->response([
'isnewerversion' => 0,
'version' => $this->version,
'message' => lng('update.noupdatesavail'),
'message' => '',
'link' => '',
'additional_info' => ''
'additional_info' => lng('update.noupdatesavail')
]);
}
}