summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Reschke <lukas@owncloud.com>2015-07-02 16:37:39 +0200
committerLukas Reschke <lukas@owncloud.com>2015-07-02 16:37:39 +0200
commit8335c7a4e9df414321e4975280fc46a2b947f7ca (patch)
treebd6ef4a2021fa2028dfa2c5124339d856c6d2612
parentb21d4a55f2efb4cd376ce475968895e6d4800ded (diff)
downloadnextcloud-server-8335c7a4e9df414321e4975280fc46a2b947f7ca.tar.gz
nextcloud-server-8335c7a4e9df414321e4975280fc46a2b947f7ca.zip
Correct wording
If a max version of 8.0.1 has been specified the message should indicate that 8.0.1 is also supported.
-rw-r--r--lib/private/app/dependencyanalyzer.php2
-rw-r--r--tests/lib/app/dependencyanalyzer.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/app/dependencyanalyzer.php b/lib/private/app/dependencyanalyzer.php
index f9289a08768..cfe69eab8aa 100644
--- a/lib/private/app/dependencyanalyzer.php
+++ b/lib/private/app/dependencyanalyzer.php
@@ -300,7 +300,7 @@ class DependencyAnalyzer {
}
if (!is_null($maxVersion)) {
if ($this->compareBigger($this->platform->getOcVersion(), $maxVersion)) {
- $missing[] = (string)$this->l->t('ownCloud with a version lower than %s is required.', $maxVersion);
+ $missing[] = (string)$this->l->t('ownCloud with a version lower or equal than %s is required.', $maxVersion);
}
}
return $missing;
diff --git a/tests/lib/app/dependencyanalyzer.php b/tests/lib/app/dependencyanalyzer.php
index 6393384057f..8d775d865f5 100644
--- a/tests/lib/app/dependencyanalyzer.php
+++ b/tests/lib/app/dependencyanalyzer.php
@@ -198,7 +198,7 @@ class DependencyAnalyzer extends \PHPUnit_Framework_TestCase {
array(array(), array('@attributes' => array('min-version' => '8.0.2', 'max-version' => '8.0.2'))),
array(array('ownCloud 8.0.3 or higher is required.'), array('@attributes' => array('min-version' => '8.0.3'))),
array(array('ownCloud 9 or higher is required.'), array('@attributes' => array('min-version' => '9'))),
- array(array('ownCloud with a version lower than 8.0.1 is required.'), array('@attributes' => array('max-version' => '8.0.1'))),
+ [['ownCloud with a version lower or equal than 8.0.1 is required.'], ['@attributes' => ['max-version' => '8.0.1']]],
);
}