Fixed bug #3069 again: Ignore version check if no requirements are specified
authorMichael Stucki <michael.stucki@typo3.org>
Tue, 6 Feb 2007 09:32:34 +0000 (09:32 +0000)
committerMichael Stucki <michael.stucki@typo3.org>
Tue, 6 Feb 2007 09:32:34 +0000 (09:32 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@2003 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/mod/tools/em/class.em_index.php

index 3df7a44..7c87124 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -4,6 +4,7 @@
        * Fixed bug #4666: Use TYPO3 settings when formatting dates
        * Fixed bug #4581: Duplicate entry on cache_pagesection on reloading twice. See bugtracker entry for details about this change.
        * Added feature #4536: Add new property "additionalParams" to GMENU items / Cleanup in tslib_menu
+       * Fixed bug #3069 again: Ignore version check if no requirements are specified
 
 2007-02-05  Ingmar Schlecht  <ingmar@typo3.org>
 
index ce7412a..547e8d4 100644 (file)
@@ -4085,12 +4085,12 @@ $EM_CONF[$_EXTKEY] = '.$this->arrayToCode($EM_CONF, 0).';
                                if(!$depV) continue;
                                $versionRange = $this->splitVersionRange($depV);
                                $phpv = strstr(PHP_VERSION,'-') ? substr(PHP_VERSION,0,strpos(PHP_VERSION,'-')) : PHP_VERSION; // Linux distributors like to add suffixes, like in 5.1.2-1. Those must be ignored!
-                               if ($versionRange[0] && version_compare($phpv,$versionRange[0],'<'))    {
+                               if ($versionRange[0]!='0.0.0' && version_compare($phpv,$versionRange[0],'<'))   {
                                        $msg[] = '<br />The running PHP version ('.$phpv.') is lower than required ('.$versionRange[0].')';
                                        $msg[] = '&nbsp;&nbsp;&nbsp;&nbsp;<input type="checkbox" value="1" name="depsolver[ignore]['.$depK.']" id="checkIgnore_'.$depK.'" /> <label for="checkIgnore_'.$depK.'">Ignore this version requirement</label>';
                                        $depError = true;
                                        continue;
-                               } elseif ($versionRange[1] && version_compare($phpv,$versionRange[1],'>'))      {
+                               } elseif ($versionRange[1]!='0.0.0' && version_compare($phpv,$versionRange[1],'>'))     {
                                        $msg[] = '<br />The running PHP version ('.$phpv.') is higher than allowed ('.$versionRange[1].')';
                                        $msg[] = '&nbsp;&nbsp;&nbsp;&nbsp;<input type="checkbox" value="1" name="depsolver[ignore]['.$depK.']" id="checkIgnore_'.$depK.'" /> <label for="checkIgnore_'.$depK.'">Ignore this version requirement</label>';
                                        $depError = true;
@@ -4101,12 +4101,12 @@ $EM_CONF[$_EXTKEY] = '.$this->arrayToCode($EM_CONF, 0).';
                                if (!$depV) continue;
 
                                $versionRange = $this->splitVersionRange($depV);
-                               if ($versionRange[0] && version_compare(TYPO3_version,$versionRange[0],'<'))    {
+                               if ($versionRange[0]!='0.0.0' && version_compare(TYPO3_version,$versionRange[0],'<'))   {
                                        $msg[] = '<br />The running TYPO3 version ('.TYPO3_version.') is lower than required ('.$versionRange[0].')';
                                        $msg[] = '&nbsp;&nbsp;&nbsp;&nbsp;<input type="checkbox" value="1" name="depsolver[ignore]['.$depK.']" id="checkIgnore_'.$depK.'" /> <label for="checkIgnore_'.$depK.'">Ignore this version requirement</label>';
                                        $depError = true;
                                        continue;
-                               } elseif ($versionRange[1] && version_compare(TYPO3_version,$versionRange[1],'>'))      {
+                               } elseif ($versionRange[1]!='0.0.0' && version_compare(TYPO3_version,$versionRange[1],'>'))     {
                                        $msg[] = '<br />The running TYPO3 version ('.TYPO3_version.') is higher than allowed ('.$versionRange[1].')';
                                        $msg[] = '&nbsp;&nbsp;&nbsp;&nbsp;<input type="checkbox" value="1" name="depsolver[ignore]['.$depK.']" id="checkIgnore_'.$depK.'" /> <label for="checkIgnore_'.$depK.'">Ignore this version requirement</label>';
                                        $depError = true;
@@ -4125,12 +4125,12 @@ $EM_CONF[$_EXTKEY] = '.$this->arrayToCode($EM_CONF, 0).';
                                $depError = true;
                        } else {
                                $versionRange = $this->splitVersionRange($depV);
-                               if ($versionRange[0] && version_compare($instExtInfo[$depK]['EM_CONF']['version'],$versionRange[0],'<'))        {
+                               if ($versionRange[0]!='0.0.0' && version_compare($instExtInfo[$depK]['EM_CONF']['version'],$versionRange[0],'<'))       {
                                        $msg[] = '<br />The running version of extension "'.$depK.'" ('.$instExtInfo[$depK]['EM_CONF']['version'].') is lower than required ('.$versionRange[0].')';
                                        $msg[] = '&nbsp;&nbsp;&nbsp;&nbsp;<input type="checkbox" value="1" name="depsolver[ignore]['.$depK.']" id="checkIgnore_'.$depK.'" /> <label for="checkIgnore_'.$depK.'">Ignore this version requirement</label>';
                                        $depError = true;
                                        continue;
-                               } elseif ($versionRange[1] && version_compare($instExtInfo[$depK]['EM_CONF']['version'],$versionRange[1],'>'))  {
+                               } elseif ($versionRange[1]!='0.0.0' && version_compare($instExtInfo[$depK]['EM_CONF']['version'],$versionRange[1],'>')) {
                                        $msg[] = '<br />The running version of extension "'.$depK.'" ('.$instExtInfo[$depK]['EM_CONF']['version'].') is higher than allowed ('.$versionRange[1].')';
                                        $msg[] = '&nbsp;&nbsp;&nbsp;&nbsp;<input type="checkbox" value="1" name="depsolver[ignore]['.$depK.']" id="checkIgnore_'.$depK.'" /> <label for="checkIgnore_'.$depK.'">Ignore this version requirement</label>';
                                        $depError = true;