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

Fix MissingDirPlugin_DrupalExtensionPrefix, for module names with underscores.

parent a591ae26
No related branches found
Tags 7.x-3.6
No related merge requests found
......@@ -4,6 +4,7 @@ class xautoload_MissingDirPlugin_DrupalExtensionPrefix extends xautoload_Missing
function alternativeDir($path_fragment) {
$extension = substr($path_fragment, 0, -1);
$extension = str_replace(array('/', DIRECTORY_SEPARATOR), '_', $extension);
if ($filepath = drupal_get_filename($this->type, $extension)) {
if ($this->shallow) {
return dirname($filepath) . '/lib/';
......
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