diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2019-05-02 16:03:58 +0200 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2019-05-06 17:55:30 +0200 |
commit | 249a5dbdba0dc3628c0f3490680de61dc91aafc8 (patch) | |
tree | 452f288909bb811146a0683b8a75c1b87932aadc /core/src/OC/index.js | |
parent | e0c62352b71441c2f843fd5f023000af342011a8 (diff) | |
download | nextcloud-server-249a5dbdba0dc3628c0f3490680de61dc91aafc8.tar.gz nextcloud-server-249a5dbdba0dc3628c0f3490680de61dc91aafc8.zip |
Move oc_webroot, OC.webroot and OC.getRootPath() to the bundle
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'core/src/OC/index.js')
-rw-r--r-- | core/src/OC/index.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/core/src/OC/index.js b/core/src/OC/index.js index f852ef1d309..ab5552c8e57 100644 --- a/core/src/OC/index.js +++ b/core/src/OC/index.js @@ -30,6 +30,7 @@ import {isUserAdmin} from './admin' import L10N from './l10n' import { generateUrl, + getRootPath, filePath, linkTo, linkToOCS, @@ -44,6 +45,7 @@ import search from './search' import Util from './util' import {debug} from './debug' import {redirect, reload} from './navigation' +import webroot from './webroot' /** @namespace OC */ export default { @@ -65,6 +67,7 @@ export default { Util, debug, generateUrl, + getRootPath, filePath, redirect, reload, @@ -72,4 +75,14 @@ export default { linkToOCS, linkToRemote, linkToRemoteBase, + /** + * Relative path to Nextcloud root. + * For example: "/nextcloud" + * + * @type string + * + * @deprecated since 8.2, use OC.getRootPath() instead + * @see OC#getRootPath + */ + webroot, } |