diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2019-05-07 09:03:14 +0200 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2019-05-07 14:03:14 +0200 |
commit | acf0ca15414fa17ae5ccc2a7d123f83cf5a2192d (patch) | |
tree | d68fb69b753a47357df30a24458dbf3b0e932e7b /core/src/globals.js | |
parent | 22f3306fd0d4f782ba415ef8220f077e293eb655 (diff) | |
download | nextcloud-server-acf0ca15414fa17ae5ccc2a7d123f83cf5a2192d.tar.gz nextcloud-server-acf0ca15414fa17ae5ccc2a7d123f83cf5a2192d.zip |
Move OC.appswebroots to the bundle and deprecate oc_appswebroots
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'core/src/globals.js')
-rw-r--r-- | core/src/globals.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/core/src/globals.js b/core/src/globals.js index bbe65009403..aa783ef815f 100644 --- a/core/src/globals.js +++ b/core/src/globals.js @@ -19,6 +19,8 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ +import appswebroots from "./OC/appswebroots"; + /** * * @param {Function} func the library to deprecate @@ -107,6 +109,7 @@ window['md5'] = md5 window['moment'] = moment window['OC'] = OC +setDeprecatedProp('oc_appswebroots', OC.appswebroots, 'use OC.appswebroots instead') setDeprecatedProp('oc_config', OC.config, 'use OC.config instead') setDeprecatedProp('oc_debug', OC.debug, 'use OC.debug instead') setDeprecatedProp('oc_isadmin', OC.isUserAdmin(), 'use OC.isUserAdmin() instead') |