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/base.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/base.php')
-rw-r--r-- | lib/base.php | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/lib/base.php b/lib/base.php index d49dd958310..4bc6c4329c4 100644 --- a/lib/base.php +++ b/lib/base.php @@ -382,14 +382,6 @@ class OC { return OC_Config::getValue('session_lifetime', 60 * 60 * 24); } - /** - * @return \OCP\Route\IRouter - */ - public static function getRouter() { - return self::$server->getRouter(); - } - - public static function loadAppClassPaths() { foreach (OC_APP::getEnabledApps() as $app) { $file = OC_App::getAppPath($app) . '/appinfo/classpath.php'; @@ -714,7 +706,7 @@ class OC { OC_App::loadApps(); } self::checkSingleUserMode(); - OC::getRouter()->match(OC_Request::getRawPathInfo()); + OC::$server->getRouter()->match(OC_Request::getRawPathInfo()); return; } catch (Symfony\Component\Routing\Exception\ResourceNotFoundException $e) { //header('HTTP/1.0 404 Not Found'); |