diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2019-01-29 14:50:05 +0100 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2019-01-30 13:56:01 +0100 |
commit | 9a46c9ed31785c66f3d89f4760452d66f9674321 (patch) | |
tree | b5f3ca6bab9fb10b03c5ea7453cae2d1c1b47b8e /core/src/OC | |
parent | fda74eb9b9e6e0da4dbe222d2d9a1ceddaf60d59 (diff) | |
download | nextcloud-server-9a46c9ed31785c66f3d89f4760452d66f9674321.tar.gz nextcloud-server-9a46c9ed31785c66f3d89f4760452d66f9674321.zip |
Move OCP.AppCOnfig, OCP.Comments and OCP.WhatsNew to the server bundle
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'core/src/OC')
-rw-r--r-- | core/src/OC/appconfig.js | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/core/src/OC/appconfig.js b/core/src/OC/appconfig.js index 67e4dac2d4c..6cc69231e41 100644 --- a/core/src/OC/appconfig.js +++ b/core/src/OC/appconfig.js @@ -20,6 +20,8 @@ import OCP from '../OCP/index'; +import {getValue, setValue, getApps, getKeys, deleteKey} from '../OCP/appconfig' + /** * @namespace * @deprecated 16.0.0 Use OCP.AppConfig instead @@ -28,8 +30,8 @@ const AppConfig = { /** * @deprecated Use OCP.AppConfig.getValue() instead */ - getValue:function(app,key,defaultValue,callback){ - OCP.AppConfig.getValue(app, key, defaultValue, { + getValue: function (app, key, defaultValue, callback) { + getValue(app, key, defaultValue, { success: callback }); }, @@ -37,15 +39,15 @@ const AppConfig = { /** * @deprecated Use OCP.AppConfig.setValue() instead */ - setValue:function(app,key,value){ - OCP.AppConfig.setValue(app, key, value); + setValue: function (app, key, value) { + setValue(app, key, value); }, /** * @deprecated Use OCP.AppConfig.getApps() instead */ - getApps:function(callback){ - OCP.AppConfig.getApps({ + getApps: function (callback) { + getApps({ success: callback }); }, @@ -53,8 +55,8 @@ const AppConfig = { /** * @deprecated Use OCP.AppConfig.getKeys() instead */ - getKeys:function(app,callback){ - OCP.AppConfig.getKeys(app, { + getKeys: function (app, callback) { + getKeys(app, { success: callback }); }, @@ -62,8 +64,8 @@ const AppConfig = { /** * @deprecated Use OCP.AppConfig.deleteKey() instead */ - deleteKey:function(app,key){ - OCP.AppConfig.deleteKey(app, key); + deleteKey: function (app, key) { + deleteKey(app, key); } }; |