Changeset 8893
- Timestamp:
- 05/10/08 14:01:06 (2 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/1.1/lib/plugin/sfPluginManager.class.php
r8813 r8893 433 433 if (is_null($version)) 434 434 { 435 $version = $this->getPluginVersion($plugin, $stability); 435 try 436 { 437 $version = $this->getPluginVersion($plugin, $stability); 438 } 439 catch (Exception $e) 440 { 441 // no release available 442 return false; 443 } 436 444 } 437 445 branches/1.1/lib/task/plugin/sfPluginInstallTask.class.php
r8813 r8893 115 115 } 116 116 117 $temp = trim(str_replace('license', '', strtolower($license))); 118 if (!is_null($license) && !in_array($temp, array('mit', 'bsd', 'lgpl', 'php', 'apache'))) 117 if (false !== $license) 119 118 { 120 throw new sfCommandException(sprintf('The license of this plugin "%s" is not MIT like (use --force-license to force installation).', $license)); 119 $temp = trim(str_replace('license', '', strtolower($license))); 120 if (!is_null($license) && !in_array($temp, array('mit', 'bsd', 'lgpl', 'php', 'apache'))) 121 { 122 throw new sfCommandException(sprintf('The license of this plugin "%s" is not MIT like (use --force-license to force installation).', $license)); 123 } 121 124 } 122 125 }