summaryrefslogtreecommitdiffstats
path: root/core/src/globals.js
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2019-05-13 21:29:40 +0200
committerChristoph Wurst <christoph@winzerhof-wurst.at>2019-05-13 21:30:01 +0200
commit6b46d9f2e5069f3d3ad8ff0da9df752bf3c3ef3f (patch)
treea39bc78348aac2f07e34d1259ec33ce3967f44a3 /core/src/globals.js
parent5ee6872c8ab688451b2489d35a9a19bbce457e98 (diff)
downloadnextcloud-server-6b46d9f2e5069f3d3ad8ff0da9df752bf3c3ef3f.tar.gz
nextcloud-server-6b46d9f2e5069f3d3ad8ff0da9df752bf3c3ef3f.zip
Move OC.getCapabilities to the bundle and deprecate OC._capabilities, oc_capabilities
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'core/src/globals.js')
-rw-r--r--core/src/globals.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/src/globals.js b/core/src/globals.js
index 48955f11d3a..2ec37c480cd 100644
--- a/core/src/globals.js
+++ b/core/src/globals.js
@@ -119,6 +119,7 @@ window['moment'] = moment
window['OC'] = OC
setDeprecatedProp('initCore', () => initCore, 'this is an internal function')
setDeprecatedProp('oc_appswebroots', () => OC.appswebroots, 'use OC.appswebroots instead')
+setDeprecatedProp('oc_capabilities', OC.getCapabilities, 'use OC.getCapabilities instead')
setDeprecatedProp('oc_config', () => OC.config, 'use OC.config instead')
setDeprecatedProp('oc_current_user', () => OC.getCurrentUser().uid, 'use OC.getCurrentUser().uid instead')
setDeprecatedProp('oc_debug', () => OC.debug, 'use OC.debug instead')