"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "core-bundle/src/Util/PackageUtil.php" between
contao-4.9.11.tar.gz and contao-4.9.12.tar.gz

About: Contao (fka TYPOlight) is a content management system (CMS). Long-term support (LTS).

PackageUtil.php  (contao-4.9.11):PackageUtil.php  (contao-4.9.12)
skipping to change at line 61 skipping to change at line 61
{ {
return ltrim(strstr($version, '@', true), 'v'); return ltrim(strstr($version, '@', true), 'v');
} }
/** /**
* Returns the contao/core-bundle or contao/contao version. * Returns the contao/core-bundle or contao/contao version.
*/ */
public static function getContaoVersion(): string public static function getContaoVersion(): string
{ {
try { try {
return static::getVersion('contao/core-bundle'); $version = static::getVersion('contao/core-bundle');
} catch (\OutOfBoundsException $e) { } catch (\OutOfBoundsException $e) {
return static::getVersion('contao/contao'); $version = '';
} }
if ('' === $version) {
$version = static::getVersion('contao/contao');
}
return $version;
} }
} }
 End of changes. 3 change blocks. 
2 lines changed or deleted 8 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)