From fd41192bb45947f56304d465c2266f168eb6036b Mon Sep 17 00:00:00 2001 From: Georg Ehrke Date: Sun, 12 Nov 2017 10:38:33 +0100 Subject: [PATCH] fix OC.getLocale() Signed-off-by: Georg Ehrke --- core/js/js.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/js/js.js b/core/js/js.js index 3cd8f30604..c1713539f4 100644 --- a/core/js/js.js +++ b/core/js/js.js @@ -791,7 +791,7 @@ var OCP = {}, * @return {String} locale string */ getLocale: function() { - return $('html').prop('data-locale'); + return $('html').data('locale'); }, /**