From 061ead081c92a6209b09eaf23b4e3103f360946e Mon Sep 17 00:00:00 2001 From: Ryan Jacobs <rjacobs@422459.no-reply.drupal.org> Date: Wed, 15 Mar 2017 12:04:08 -0500 Subject: [PATCH] Issue #2774313 by rjacobs: Revert micro-commit from previous #2774313 merge commit to address test failures. --- src/ExternalLibrary/Type/LibraryTypeBase.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/ExternalLibrary/Type/LibraryTypeBase.php b/src/ExternalLibrary/Type/LibraryTypeBase.php index 9774e97..6cd9f59 100644 --- a/src/ExternalLibrary/Type/LibraryTypeBase.php +++ b/src/ExternalLibrary/Type/LibraryTypeBase.php @@ -75,7 +75,10 @@ abstract class LibraryTypeBase implements $this->locatorFactory->createInstance('global')->locate($library); } // Also fetch version information. - if ($library->isInstalled() && $library instanceof VersionedLibraryInterface) { + if ($library instanceof VersionedLibraryInterface) { + // @todo Consider if this should be wrapped in some conditional logic + // or exception handling so that version detection errors do not + // prevent a library from being loaded. $library->getVersionDetector($this->detectorFactory)->detectVersion($library); } } -- GitLab