Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
9eef4055
Commit
9eef4055
authored
Sep 27, 2010
by
Dries
Browse files
- Patch
#922008
by davehimself, litwol: drupal_get_filename() does not respect DRUPAL_ROOT.
parent
477d1f7b
Changes
1
Hide whitespace changes
Inline
Side-by-side
includes/bootstrap.inc
View file @
9eef4055
...
...
@@ -690,7 +690,7 @@ function drupal_get_filename($type, $name, $filename = NULL) {
try
{
if
(
function_exists
(
'db_query'
))
{
$file
=
db_query
(
"SELECT filename FROM
{
system
}
WHERE name = :name AND type = :type"
,
array
(
':name'
=>
$name
,
':type'
=>
$type
))
->
fetchField
();
if
(
file_exists
(
$file
))
{
if
(
file_exists
(
DRUPAL_ROOT
.
'/'
.
$file
))
{
$files
[
$type
][
$name
]
=
$file
;
}
}
...
...
Write
Preview
Supports
Markdown
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