summaryrefslogtreecommitdiffstats
path: root/lib/api.php
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 /lib/api.php
parent93daa9e247e9c423a6d4bb10af1106fdde37b800 (diff)
downloadnextcloud-server-7952c6a31c27718428fddbca71c587506eb071d8.tar.gz
nextcloud-server-7952c6a31c27718428fddbca71c587506eb071d8.zip
Change access to router object to getter function
Diffstat (limited to 'lib/api.php')
-rw-r--r--lib/api.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api.php b/lib/api.php
index 6ee570d60e7..155082fa0d0 100644
--- a/lib/api.php
+++ b/lib/api.php
@@ -44,7 +44,7 @@ class OC_API {
$name = strtolower($method).$url;
$name = str_replace(array('/', '{', '}'), '_', $name);
if(!isset(self::$actions[$name])){
- OC::$router->create($name, $url.'.{_format}')
+ OC::getRouter()->create($name, $url.'.{_format}')
->method($method)
->defaults(array('_format' => 'xml') + $defaults)
->requirements(array('_format' => 'xml|json') + $requirements)