diff options
author | Andreas Fischer <bantu@owncloud.com> | 2013-12-19 17:38:37 +0100 |
---|---|---|
committer | Andreas Fischer <bantu@owncloud.com> | 2013-12-19 17:38:37 +0100 |
commit | 526e8730733f1ac1be76deacf2e45fba37f6fbb8 (patch) | |
tree | b6a374423660a627ced8062c16021d5b64202e30 /lib | |
parent | 06dec2632f5e873d62a577ce8dbdb5a2d7ecfb73 (diff) | |
parent | 301d469813763cc28d82986f906eb29a45102294 (diff) | |
download | nextcloud-server-526e8730733f1ac1be76deacf2e45fba37f6fbb8.tar.gz nextcloud-server-526e8730733f1ac1be76deacf2e45fba37f6fbb8.zip |
Merge pull request #6219 from leo-b/fix_router_deprecation
Symfonys addCollection() with multiple arguments is deprecated
* leo-b/fix_router_deprecation:
Symfonys addCollection() with multiple arguments is deprecated, fix deprecation warning
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/router.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/private/router.php b/lib/private/router.php index dbaca9e0d5d..19c1e4473ec 100644 --- a/lib/private/router.php +++ b/lib/private/router.php @@ -67,7 +67,8 @@ class OC_Router { $this->useCollection($app); require_once $file; $collection = $this->getCollection($app); - $this->root->addCollection($collection, '/apps/'.$app); + $collection->addPrefix('/apps/'.$app); + $this->root->addCollection($collection); } $this->useCollection('root'); require_once 'settings/routes.php'; @@ -76,7 +77,8 @@ class OC_Router { // include ocs routes require_once 'ocs/routes.php'; $collection = $this->getCollection('ocs'); - $this->root->addCollection($collection, '/ocs'); + $collection->addPrefix('/ocs'); + $this->root->addCollection($collection); } protected function getCollection($name) { |