summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-02-02 10:49:46 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2015-02-02 10:49:46 +0100
commit82b271855c019c23e1e8163f9f7a02def8c36dc3 (patch)
treec1e6edcdb0b3f38da0912440e45f6c669ffdd8de
parentc9543c9e8ed2ac8dc55f0df38504c7dc4f5138be (diff)
downloadnextcloud-server-82b271855c019c23e1e8163f9f7a02def8c36dc3.tar.gz
nextcloud-server-82b271855c019c23e1e8163f9f7a02def8c36dc3.zip
add libs which have no version number
-rw-r--r--lib/private/app/platformrepository.php5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/private/app/platformrepository.php b/lib/private/app/platformrepository.php
index 96d04ec2e42..be825e74ca3 100644
--- a/lib/private/app/platformrepository.php
+++ b/lib/private/app/platformrepository.php
@@ -28,13 +28,10 @@ class PlatformRepository {
$ext = new \ReflectionExtension($name);
try {
$prettyVersion = $ext->getVersion();
+ $prettyVersion = $this->normalizeVersion($prettyVersion);
} catch (\UnexpectedValueException $e) {
$prettyVersion = '0';
- }
- try {
$prettyVersion = $this->normalizeVersion($prettyVersion);
- } catch (\UnexpectedValueException $e) {
- continue;
}
$packages[$this->buildPackageName($name)] = $prettyVersion;