mirror of
https://github.com/e107inc/e107.git
synced 2025-08-12 01:25:01 +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:
@@ -71,7 +71,7 @@ abstract class e_file_inspector implements e_file_inspector_interface
|
||||
$absolutePath = realpath(e_BASE . $path);
|
||||
$dbChecksums = $this->getChecksums($path);
|
||||
$dbChecksum = $this->getChecksum($path, $version);
|
||||
$actualChecksum = $dbChecksum ? $this->checksumPath($absolutePath) : null;
|
||||
$actualChecksum = !empty($dbChecksums) ? $this->checksumPath($absolutePath) : null;
|
||||
|
||||
if (!empty($dbChecksums)) $bits |= self::VALIDATED_PATH_KNOWN;
|
||||
if ($dbChecksum !== false) $bits |= self::VALIDATED_PATH_VERSION;
|
||||
|
Reference in New Issue
Block a user