Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2012-08-02 19:47:38 +0400
committerBart Visscher <bartv@thisnet.nl>2012-08-02 19:47:38 +0400
commit7952c6a31c27718428fddbca71c587506eb071d8 (patch)
treedfbd8056b51578396f996c939701ff93b5bf7517 /ocs/v1.php
parent93daa9e247e9c423a6d4bb10af1106fdde37b800 (diff)
Change access to router object to getter function
Diffstat (limited to 'ocs/v1.php')
-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) {