diff --git a/libraries.module b/libraries.module index 687fa29..4db17d3 100644 --- a/libraries.module +++ b/libraries.module @@ -663,8 +663,8 @@ function libraries_load_files($library) { } // Construct the full path to the library for later use. - $path = $library['library path']; - $path = ($library['path'] !== '' ? $path . '/' . $library['path'] : $path); + $library_path = $library['library path']; + $library_path = ($library['path'] !== '' ? $library_path . '/' . $library['path'] : $library_path); // Count the number of loaded files for the return value. $count = 0; @@ -690,7 +690,7 @@ function libraries_load_files($library) { unset($options['data']); } // Prepend the library path to the file name. - $data = "$path/$data"; + $data = "$library_path/$data"; // Apply the default group if the group isn't explicitly given. if (!isset($options['group'])) { $options['group'] = ($type == 'js') ? JS_DEFAULT : CSS_DEFAULT; @@ -704,7 +704,7 @@ function libraries_load_files($library) { // Load PHP files. if (!empty($library['files']['php'])) { foreach ($library['files']['php'] as $file => $array) { - $file_path = DRUPAL_ROOT . '/' . $path . '/' . $file; + $file_path = DRUPAL_ROOT . '/' . $library_path . '/' . $file; if (file_exists($file_path)) { require_once $file_path; $count++;