summaryrefslogtreecommitdiffstats
path: root/apps/files_external/appinfo/routes.php
diff options
context:
space:
mode:
authorRobin McCorkell <rmccorkell@owncloud.com>2015-08-12 21:43:29 +0100
committerRobin McCorkell <rmccorkell@owncloud.com>2015-08-19 10:08:23 +0100
commitc592e24c871f0f6a8d688c5c93e769b1505e4b6d (patch)
tree0b967704610d193c1296ae623ab2b7212e87e2d0 /apps/files_external/appinfo/routes.php
parent97dbc79c16ba9d4d6c361d6f397908ef7893954d (diff)
downloadnextcloud-server-c592e24c871f0f6a8d688c5c93e769b1505e4b6d.tar.gz
nextcloud-server-c592e24c871f0f6a8d688c5c93e769b1505e4b6d.zip
Make Application a singleton
The same Application must be used in the settings templates and in routes, so that any registered backends are correctly seen
Diffstat (limited to 'apps/files_external/appinfo/routes.php')
-rw-r--r--apps/files_external/appinfo/routes.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/apps/files_external/appinfo/routes.php b/apps/files_external/appinfo/routes.php
index bc4b0e98c91..213e7b28dc1 100644
--- a/apps/files_external/appinfo/routes.php
+++ b/apps/files_external/appinfo/routes.php
@@ -28,8 +28,7 @@ namespace OCA\Files_External\AppInfo;
/**
* @var $this \OC\Route\Router
**/
-$application = new Application();
-$application->registerRoutes(
+\OC_Mount_Config::$app->registerRoutes(
$this,
array(
'resources' => array(