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
117b3e0a
Commit
117b3e0a
authored
Mar 24, 2016
by
Lukas Reschke
Browse files
getAppPath can return false
Fixes
https://github.com/owncloud/core/issues/23533
parent
4b3af9df
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/private/route/router.php
View file @
117b3e0a
...
...
@@ -95,9 +95,12 @@ class Router implements IRouter {
if
(
!
isset
(
$this
->
routingFiles
))
{
$this
->
routingFiles
=
[];
foreach
(
\
OC_APP
::
getEnabledApps
()
as
$app
)
{
$file
=
\
OC_App
::
getAppPath
(
$app
)
.
'/appinfo/routes.php'
;
if
(
file_exists
(
$file
))
{
$this
->
routingFiles
[
$app
]
=
$file
;
$appPath
=
\
OC_App
::
getAppPath
(
$app
);
if
(
$appPath
!==
false
)
{
$file
=
$appPath
.
'/appinfo/routes.php'
;
if
(
file_exists
(
$file
))
{
$this
->
routingFiles
[
$app
]
=
$file
;
}
}
}
}
...
...
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