diff options
author | Julius Härtl <jus@bitgrid.net> | 2019-07-05 17:16:51 +0300 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2019-07-16 08:39:43 +0300 |
commit | 385fcc78fefbf43015e84f77b66d0b56a6f39bfe (patch) | |
tree | 9cd85dac41a08581c015b0d01ec074bc2d118973 /src | |
parent | 9977186142ca01630fbdc92f09c7d9775adb9e97 (diff) |
Undo wrong function calls
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'src')
-rw-r--r-- | src/document.js | 4 | ||||
-rw-r--r-- | src/helpers/index.js | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/document.js b/src/document.js index d0e2cc68..008857c2 100644 --- a/src/document.js +++ b/src/document.js @@ -1,5 +1,7 @@ -import { getRootPath } from 'nextcloud-server/dist/router' import { languageToBCP47 } from './helpers' + +const getRootPath = OC.getRootPath + /* TODO: move to one object */ /* global richdocuments_directEdit richdocuments_fileId richdocuments_urlsrc richdocuments_token richdocuments_path richdocuments_permissions richdocuments_title getURLParameter richdocuments_canonical_webroot */ diff --git a/src/helpers/index.js b/src/helpers/index.js index bebca3fc..44c8951f 100644 --- a/src/helpers/index.js +++ b/src/helpers/index.js @@ -20,11 +20,9 @@ * */ -import { getLanguage } from 'nextcloud-server/dist/l10n' - const languageToBCP47 = () => { // loleaflet expects a BCP47 language tag syntax - return getLanguage() + return OC.getLanguage() .replace(/^([a-z]{2}).*_([A-Z]{2})$/, (match, p1, p2) => p1 + '-' + p2.toLowerCase()) } |