diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2015-12-29 17:31:28 +0100 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2015-12-29 17:31:28 +0100 |
commit | 9e39e8f1c77d39f977702a5240e67e2c57049ed7 (patch) | |
tree | 77c1f9bab0ded889cd735291f9ac605ff3daa340 | |
parent | f57e77fe05da5ef25d017a58755688702992631b (diff) | |
download | nextcloud-server-9e39e8f1c77d39f977702a5240e67e2c57049ed7.tar.gz nextcloud-server-9e39e8f1c77d39f977702a5240e67e2c57049ed7.zip |
No more deprecation messages in error log
-rw-r--r-- | lib/private/route/router.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/private/route/router.php b/lib/private/route/router.php index f144c543989..8d31d448855 100644 --- a/lib/private/route/router.php +++ b/lib/private/route/router.php @@ -328,7 +328,11 @@ class Router implements IRouter { public function generate($name, $parameters = array(), $absolute = false) { $this->loadRoutes(); try { - return $this->getGenerator()->generate($name, $parameters, $absolute); + $referenceType = UrlGenerator::ABSOLUTE_URL; + if ($absolute === false) { + $referenceType = UrlGenerator::ABSOLUTE_PATH; + } + return $this->getGenerator()->generate($name, $parameters, $referenceType); } catch (RouteNotFoundException $e) { $this->logger->logException($e); return ''; |