Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
die_coolen_jungs
our_own_cloud_project
Commits
9e39e8f1
Commit
9e39e8f1
authored
Dec 29, 2015
by
Thomas Müller
Browse files
No more deprecation messages in error log
parent
f57e77fe
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/private/route/router.php
View file @
9e39e8f1
...
...
@@ -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
''
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment