summaryrefslogtreecommitdiffstats
path: root/core/src/OC/routing.js
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/OC/routing.js')
-rw-r--r--core/src/OC/routing.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/src/OC/routing.js b/core/src/OC/routing.js
index 0c57f01b963..8c7a7d7e1cd 100644
--- a/core/src/OC/routing.js
+++ b/core/src/OC/routing.js
@@ -22,6 +22,7 @@
import _ from 'underscore'
import OC from './index'
+import {coreApps} from './constants'
/**
* Get an absolute url to a file in an app
@@ -105,7 +106,7 @@ export const generateUrl = (url, params, options) => {
* @return {string} Absolute URL for a file in an app
*/
export const filePath = (app, type, file) => {
- const isCore = OC.coreApps.indexOf(app) !== -1
+ const isCore = coreApps.indexOf(app) !== -1
let link = getRootPath()
if (file.substring(file.length - 3) === 'php' && !isCore) {
link += '/index.php/apps/' + app;