[BUGFIX] Change wording for TYPO3 dependency errors 33/31833/2
authorSusanne Moog <typo3@susannemoog.de>
Fri, 25 Jul 2014 17:44:29 +0000 (19:44 +0200)
committerAnja Leichsenring <aleichsenring@ab-softlab.de>
Fri, 25 Jul 2014 19:07:31 +0000 (21:07 +0200)
The wording of a TYPO3 dependency error currently suggests
installing another TYPO3 version to make an extension usable -
that does not make sense.

Change the error message so it's clear that it's the extensions'
support that is missing.

Change-Id: I7a5f7acde7bebc9c3f7acda92e2522ffb979d478
Resolves: #53572
Fixes: 6.3, 6.2
Reviewed-on: http://review.typo3.org/31833
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
typo3/sysext/extensionmanager/Classes/Utility/DependencyUtility.php

index 2f62c50..df5033c 100644 (file)
@@ -172,13 +172,13 @@ class DependencyUtility implements \TYPO3\CMS\Core\SingletonInterface {
                if ($lowerCaseIdentifier === 'typo3') {
                        if (!($dependency->getLowestVersion() === '') && version_compare(VersionNumberUtility::getNumericTypo3Version(), $dependency->getLowestVersion()) === -1) {
                                throw new Exception\UnresolvedTypo3DependencyException(
-                                       'Your TYPO3 version is lower than necessary. You need at least TYPO3 version ' . $dependency->getLowestVersion(),
+                                       'Your TYPO3 version is lower than this extension requires. It requires TYPO3 versions ' . $dependency->getLowestVersion() . ' - ' . $dependency->getHighestVersion(),
                                        1399144499
                                );
                        }
                        if (!($dependency->getHighestVersion() === '') && version_compare($dependency->getHighestVersion(), VersionNumberUtility::getNumericTypo3Version()) === -1) {
                                throw new Exception\UnresolvedTypo3DependencyException(
-                                       'Your TYPO3 version is higher than allowed. You can use TYPO3 versions ' . $dependency->getLowestVersion() . ' - ' . $dependency->getHighestVersion(),
+                                       'Your TYPO3 version is higher than this extension requires. It requires TYPO3 versions ' . $dependency->getLowestVersion() . ' - ' . $dependency->getHighestVersion(),
                                        1399144521
                                );
                        }