Correct wording

If a max version of 8.0.1 has been specified the message should indicate that 8.0.1 is also supported.
This commit is contained in:
Lukas Reschke 2015-07-02 16:37:39 +02:00
parent b21d4a55f2
commit 8335c7a4e9
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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']]],
);
}