Skip to content
Snippets Groups Projects
Commit 86363269 authored by Andreas Hennings's avatar Andreas Hennings
Browse files

All module paths should be absolute, not relative to drupal root. See...

All module paths should be absolute, not relative to drupal root. See https://drupal.org/node/2162691
parent bc04e308
No related branches found
Tags 7.x-4.0-alpha4
No related merge requests found
......@@ -23,7 +23,7 @@ class DrupalSystem implements DrupalSystemInterface {
* {@inheritdoc}
*/
function drupalGetFilename($type, $name) {
return drupal_get_filename($type, $name);
return DRUPAL_ROOT . '/' . drupal_get_filename($type, $name);
}
/**
......
......@@ -15,12 +15,13 @@ interface DrupalSystemInterface {
function variableGet($name, $default = NULL);
/**
* Replacement of drupal_get_filename().
* Replacement of drupal_get_filename(), but returning an absolute path.
*
* @param string $type
* @param string $name
*
* @return string
* The result of drupal_get_filename() with DRUPAL_ROOT . '/' prepended.
*/
function drupalGetFilename($type, $name);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment