summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--core/js/js.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/js/js.js b/core/js/js.js
index 3cd8f306044..c1713539f4f 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');
},
/**