diff options
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') |