Skip to content

Commit

Permalink
Remove module_exists check so we can use modules not explicitely enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
korstiaan committed Jul 29, 2012
1 parent 030b54a commit baadb2c
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions module/Nsautoload/Nsautoload.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,17 +55,13 @@ public function findFile($class)
// Convert CamelCase to camel_case
$module = strtolower(preg_replace('/(?<=\\w)(?=[A-Z])/', '_$1', reset($expl)));

if (!module_exists($module)) {
return;
}

if (2 === count($expl)) {
// Locate Foo\Bar in foo/class/bar.class.inc (for BC purposes)
$className = strtolower(end($expl));
$file =
DRUPAL_ROOT.
DIRECTORY_SEPARATOR.
drupal_get_path('module', $module).
\drupal_get_path('module', $module).
DIRECTORY_SEPARATOR.
'class'.
DIRECTORY_SEPARATOR.
Expand Down

0 comments on commit baadb2c

Please sign in to comment.