mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-29 06:38:52 +00:00
[ticket/11150] Uses PHPBB_VERSION, not the composer.json one
PHPBB3-11150
This commit is contained in:
parent
ce12b7799f
commit
5f4aa4f416
1 changed files with 1 additions and 22 deletions
|
@ -547,28 +547,7 @@ class installer
|
|||
$core_deps[$package->getName()] = $package->getPrettyVersion();
|
||||
}
|
||||
|
||||
$core_deps['phpbb/phpbb'] = $composer->getPackage()->getPrettyVersion();
|
||||
|
||||
return $core_deps;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the core installed packages
|
||||
*
|
||||
* @param Composer $composer Composer object to load the dependencies
|
||||
* @return array The core packages with their version
|
||||
*/
|
||||
protected function get_core_version(Composer $composer)
|
||||
{
|
||||
$core_deps = [];
|
||||
$packages = $composer->getRepositoryManager()->getLocalRepository()->getCanonicalPackages();
|
||||
|
||||
foreach ($packages as $package)
|
||||
{
|
||||
$core_deps[$package->getName()] = $package->getPrettyVersion();
|
||||
}
|
||||
|
||||
$core_deps['phpbb/phpbb'] = $composer->getPackage()->getPrettyVersion();
|
||||
$core_deps['phpbb/phpbb'] = PHPBB_VERSION;
|
||||
|
||||
return $core_deps;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue