From 02f021cf2ca5e53a7604cb3dbf07b149de8540ca Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Thu, 21 Mar 2019 11:32:37 +0100 Subject: [PATCH] Locale is not language Signed-off-by: Joas Schilling --- js/script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/script.js b/js/script.js index 44343df7a..dfa9cede1 100755 --- a/js/script.js +++ b/js/script.js @@ -83,7 +83,7 @@ $(function(){ url: OC.linkToOCS('apps/activity/api/v2/activity', 2) + OCA.Activity.Filter.filter + '?format=json&previews=true&since=' + self.lastGivenId, type: 'GET', beforeSend: function(xhr) { - xhr.setRequestHeader("Accept-Language", OC.getLocale()); + xhr.setRequestHeader("Accept-Language", OC.getLanguage()); }, success: function(response, status, xhr) { if (status === 'notmodified') {