diff options
author | Dries Buytaert <dries@buytaert.net> | 2010-09-27 01:14:10 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2010-09-27 01:14:10 +0000 |
commit | 9eef40557238574c68a3fb4de1a69baabc31e9ea (patch) | |
tree | d6dde12e874adf89e5e096e23162f5a057f5d3e3 /includes | |
parent | 477d1f7b39ef5b925c8aa37fc5abd3602b3e8c1a (diff) | |
download | brdo-9eef40557238574c68a3fb4de1a69baabc31e9ea.tar.gz brdo-9eef40557238574c68a3fb4de1a69baabc31e9ea.tar.bz2 |
- Patch #922008 by davehimself, litwol: drupal_get_filename() does not respect DRUPAL_ROOT.
Diffstat (limited to 'includes')
-rw-r--r-- | includes/bootstrap.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/bootstrap.inc b/includes/bootstrap.inc index 53897c683..b4c550b3e 100644 --- a/includes/bootstrap.inc +++ b/includes/bootstrap.inc @@ -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; } } |