mirror of
https://github.com/e107inc/e107.git
synced 2025-08-09 16:17:14 +02:00
File Inspector now shows the old e107 version of core files
Bugfixes related to this change: * e_file_inspector: During validation, the checksum is now calculated, even if the file is old. * e_file_inspector_json: Strip the "v" from the beginning of version numbers in the database to make them proper PHP-standardized versions.
This commit is contained in:
@@ -63,6 +63,7 @@ class e_file_inspector_json extends e_file_inspector
|
||||
/**
|
||||
* Flatten a multi-dimensional associative array with slashes.
|
||||
* Excludes the second-to-last level of depth from flattening.
|
||||
* Also removes the leading "v" from all version keys.
|
||||
*
|
||||
* Based on Illuminate\Support\Arr::dot()
|
||||
*
|
||||
@@ -84,6 +85,11 @@ class e_file_inspector_json extends e_file_inspector
|
||||
}
|
||||
else
|
||||
{
|
||||
foreach ($value as $versionWithV => $checksum)
|
||||
{
|
||||
$value[ltrim($versionWithV, 'v')] = $checksum;
|
||||
unset($value[$versionWithV]);
|
||||
}
|
||||
$results[$prepend . $key] = $value;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user