summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRyan Jacobs2017-03-15 17:04:08 (GMT)
committerRyan Jacobs2017-03-15 17:04:08 (GMT)
commit061ead081c92a6209b09eaf23b4e3103f360946e (patch)
tree74488c960c3b1cb8891217200cc0e6c3d897ee1b
parent73f8b99ec74d3ebbb196540a6115584e72f9a640 (diff)
Issue #2774313 by rjacobs: Revert micro-commit from previous #2774313 merge commit to address test failures.8.x-3.0-alpha18.x-3.x
-rw-r--r--src/ExternalLibrary/Type/LibraryTypeBase.php5
1 files changed, 4 insertions, 1 deletions
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);
}
}