diff options
author | Robin Appelman <icewind@owncloud.com> | 2014-03-10 14:06:47 +0100 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2014-03-10 14:06:47 +0100 |
commit | 26793e1f943012937776324698855108dd5352ba (patch) | |
tree | 9c5d6736bb7ad387dd538cb65bd780857e3b8e1d /lib/private/api.php | |
parent | 8ab7d18a6a2b023527d2eef63099e2834c46ec97 (diff) | |
download | nextcloud-server-26793e1f943012937776324698855108dd5352ba.tar.gz nextcloud-server-26793e1f943012937776324698855108dd5352ba.zip |
switch OC::getRouter usages to OC::$server->getRouter
Diffstat (limited to 'lib/private/api.php')
-rw-r--r-- | lib/private/api.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/api.php b/lib/private/api.php index 3f96196e6df..cde24f78a55 100644 --- a/lib/private/api.php +++ b/lib/private/api.php @@ -65,8 +65,8 @@ class OC_API { $name = strtolower($method).$url; $name = str_replace(array('/', '{', '}'), '_', $name); if(!isset(self::$actions[$name])) { - OC::getRouter()->useCollection('ocs'); - OC::getRouter()->create($name, $url) + OC::$server->getRouter()->useCollection('ocs'); + OC::$server->getRouter()->create($name, $url) ->method($method) ->defaults($defaults) ->requirements($requirements) |