summaryrefslogtreecommitdiffstats
path: root/ocs
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2012-08-02 17:47:38 +0200
committerBart Visscher <bartv@thisnet.nl>2012-08-02 17:47:38 +0200
commit7952c6a31c27718428fddbca71c587506eb071d8 (patch)
treedfbd8056b51578396f996c939701ff93b5bf7517 /ocs
parent93daa9e247e9c423a6d4bb10af1106fdde37b800 (diff)
downloadnextcloud-server-7952c6a31c27718428fddbca71c587506eb071d8.tar.gz
nextcloud-server-7952c6a31c27718428fddbca71c587506eb071d8.zip
Change access to router object to getter function
Diffstat (limited to 'ocs')
-rw-r--r--ocs/v1.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/ocs/v1.php b/ocs/v1.php
index 7cd61035e7c..cb8a1faf876 100644
--- a/ocs/v1.php
+++ b/ocs/v1.php
@@ -25,11 +25,11 @@ require_once('../lib/base.php');
use Symfony\Component\Routing\Exception\ResourceNotFoundException;
use Symfony\Component\Routing\Exception\MethodNotAllowedException;
-OC::$router->useCollection('ocs');
-OC::$router->loadRoutes();
+OC::getRouter()->useCollection('ocs');
+OC::getRouter()->loadRoutes();
try {
- OC::$router->match($_SERVER['PATH_INFO']);
+ OC::getRouter()->match($_SERVER['PATH_INFO']);
} catch (ResourceNotFoundException $e) {
OC_OCS::notFound();
} catch (MethodNotAllowedException $e) {