mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 13:54:02 -07:00
Minor improvements (#1516)
* Minor improvements * Update build_files_integrity.php * Update CHANGELOG.md * Updated
This commit is contained in:
parent
8e3d1b0479
commit
84f6c9f4a0
4 changed files with 8 additions and 8 deletions
|
@ -13,7 +13,7 @@ if (!defined('BB_ROOT')) {
|
|||
|
||||
global $bb_cfg;
|
||||
|
||||
if (!$bb_cfg['integrity_check']) {
|
||||
if (!$bb_cfg['integrity_check'] || is_dir(BB_ROOT . '.git')) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -56,7 +56,7 @@ foreach ($checksumFile as $line) {
|
|||
}
|
||||
|
||||
foreach ($filesList as $file) {
|
||||
if (!file_exists(BB_ROOT . '/' . $file['path']) || (strtolower(md5_file(BB_ROOT . '/' . $file['path'])) !== strtolower($file['hash']))) {
|
||||
if (!file_exists(BB_ROOT . $file['path']) || (strtolower(md5_file(BB_ROOT . $file['path'])) !== strtolower($file['hash']))) {
|
||||
$wrongFilesList[] = $file['path'];
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue