mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Update src/Core/Manifest/VersionProvider.php
Co-authored-by: Michal Kleiner <mk@011.nz>
This commit is contained in:
parent
b9f63001c5
commit
0e839e12cc
@ -80,7 +80,7 @@ class VersionProvider
|
|||||||
*/
|
*/
|
||||||
public function getModuleVersion(string $module): string
|
public function getModuleVersion(string $module): string
|
||||||
{
|
{
|
||||||
$key = preg_replace("/[^A-Za-z0-9]/", '', $this->getComposerLockPath() . $module);
|
$key = preg_replace("/[^A-Za-z0-9]/", '_', $this->getComposerLockPath() . '_' . $module);
|
||||||
$version = $this->getCachedValue($key);
|
$version = $this->getCachedValue($key);
|
||||||
if ($version) {
|
if ($version) {
|
||||||
return $version;
|
return $version;
|
||||||
|
Loading…
Reference in New Issue
Block a user