diff --git a/libraries.module b/libraries.module index 687fa29..200aa9c 100644 --- a/libraries.module +++ b/libraries.module @@ -749,7 +749,13 @@ function libraries_get_version($library, $options) { 'cols' => 200, ); - $file = DRUPAL_ROOT . '/' . $library['library path'] . '/' . $options['file']; + if (isset($library['path'])) { + $file = DRUPAL_ROOT . '/' . $library['library path'] . '/' . $library['path'] . '/' . $options['file']; + } + else { + $file = DRUPAL_ROOT . '/' . $library['library path'] . '/' . $options['file']; + } + if (empty($options['file']) || !file_exists($file)) { return; }