summaryrefslogtreecommitdiffstats
path: root/lib/private/urlgenerator.php
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2014-03-10 14:06:47 +0100
committerRobin Appelman <icewind@owncloud.com>2014-03-10 14:06:47 +0100
commit26793e1f943012937776324698855108dd5352ba (patch)
tree9c5d6736bb7ad387dd538cb65bd780857e3b8e1d /lib/private/urlgenerator.php
parent8ab7d18a6a2b023527d2eef63099e2834c46ec97 (diff)
downloadnextcloud-server-26793e1f943012937776324698855108dd5352ba.tar.gz
nextcloud-server-26793e1f943012937776324698855108dd5352ba.zip
switch OC::getRouter usages to OC::$server->getRouter
Diffstat (limited to 'lib/private/urlgenerator.php')
-rw-r--r--lib/private/urlgenerator.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/urlgenerator.php b/lib/private/urlgenerator.php
index 60da34f2d6e..44b46ef6700 100644
--- a/lib/private/urlgenerator.php
+++ b/lib/private/urlgenerator.php
@@ -39,7 +39,7 @@ class URLGenerator implements IURLGenerator {
* Returns a url to the given app and file.
*/
public function linkToRoute($route, $parameters = array()) {
- $urlLinkTo = \OC::getRouter()->generate($route, $parameters);
+ $urlLinkTo = \OC::$server->getRouter()->generate($route, $parameters);
return $urlLinkTo;
}