aboutsummaryrefslogtreecommitdiffstats
path: root/ocs
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2014-03-10 14:06:47 +0100
committerRobin Appelman <icewind@owncloud.com>2014-03-10 14:06:47 +0100
commit26793e1f943012937776324698855108dd5352ba (patch)
tree9c5d6736bb7ad387dd538cb65bd780857e3b8e1d /ocs
parent8ab7d18a6a2b023527d2eef63099e2834c46ec97 (diff)
downloadnextcloud-server-26793e1f943012937776324698855108dd5352ba.tar.gz
nextcloud-server-26793e1f943012937776324698855108dd5352ba.zip
switch OC::getRouter usages to OC::$server->getRouter
Diffstat (limited to 'ocs')
-rw-r--r--ocs/v1.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/ocs/v1.php b/ocs/v1.php
index 1c7d1c89768..3da72e65f1c 100644
--- a/ocs/v1.php
+++ b/ocs/v1.php
@@ -26,7 +26,7 @@ use Symfony\Component\Routing\Exception\ResourceNotFoundException;
use Symfony\Component\Routing\Exception\MethodNotAllowedException;
try {
- OC::getRouter()->match('/ocs'.OC_Request::getRawPathInfo());
+ OC::$server->getRouter()->match('/ocs'.OC_Request::getRawPathInfo());
} catch (ResourceNotFoundException $e) {
OC_OCS::notFound();
} catch (MethodNotAllowedException $e) {