diff options
author | Bart Visscher <bartv@thisnet.nl> | 2012-08-02 17:47:38 +0200 |
---|---|---|
committer | Bart Visscher <bartv@thisnet.nl> | 2012-08-02 17:47:38 +0200 |
commit | 7952c6a31c27718428fddbca71c587506eb071d8 (patch) | |
tree | dfbd8056b51578396f996c939701ff93b5bf7517 /lib/api.php | |
parent | 93daa9e247e9c423a6d4bb10af1106fdde37b800 (diff) | |
download | nextcloud-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.php | 2 |
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) |