mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
remove sprintf
This commit is contained in:
parent
d3c2fa897c
commit
c0cc129f12
@ -44,7 +44,7 @@ class VersionProvider
|
||||
*/
|
||||
public function getVersion()
|
||||
{
|
||||
$key = sprintf('%s_%s', preg_replace("/[^A-Za-z0-9]/", '', $this->getComposerLockPath()), 'all');
|
||||
$key = preg_replace("/[^A-Za-z0-9]/", '', $this->getComposerLockPath() . 'all');
|
||||
$version = $this->getCachedValue($key);
|
||||
if ($version) {
|
||||
return $version;
|
||||
@ -80,7 +80,7 @@ class VersionProvider
|
||||
*/
|
||||
public function getModuleVersion(string $module): string
|
||||
{
|
||||
$key = sprintf('%s_%s', preg_replace("/[^A-Za-z0-9]/", '', $this->getComposerLockPath()), $module);
|
||||
$key = preg_replace("/[^A-Za-z0-9]/", '', $this->getComposerLockPath() . $module);
|
||||
$version = $this->getCachedValue($key);
|
||||
if ($version) {
|
||||
return $version;
|
||||
|
Loading…
x
Reference in New Issue
Block a user