misc: Minor improvements (#1796)

* misc: Minor improvements

* Update build_files_integrity.php
This commit is contained in:
Roman Kelesidis 2025-02-05 20:59:23 +03:00 committed by GitHub
commit 8650ad30f4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 10 additions and 5 deletions

View file

@ -26,6 +26,7 @@ $checksumFile->setFlags(SplFileObject::SKIP_EMPTY | SplFileObject::DROP_NEW_LINE
$ignoreFiles = [
'.env.example',
'.htaccess',
'CHANGELOG.md',
'robots.txt',
'install.php',
'favicon.png',
@ -40,17 +41,21 @@ $ignoreFiles = [
foreach ($checksumFile as $line) {
$parts = explode(' ', $line);
if (!isset($parts[0]) || !isset($parts[1])) {
[$hash, $path] = $parts;
if (!isset($hash) || !isset($path)) {
// Skip end line
break;
}
if (!empty($ignoreFiles) && in_array($parts[1], $ignoreFiles)) {
if (!empty($ignoreFiles) && in_array($path, $ignoreFiles)) {
// Skip files from "Ignoring list"
continue;
}
$filesList[] = [
'path' => trim($parts[1]),
'hash' => trim($parts[0])
'path' => trim($path),
'hash' => trim($hash)
];
}

View file

@ -626,7 +626,7 @@ function build_poll_add_form (src_el)
<!-- IF S_WATCH_TOPIC -->
<tr id="post_opt" class="row2">
<td class="td2 med tCenter pad_4">
<label><input type="checkbox" name="notify" <!-- IF QR_NOTIFY_CHECKED -->checked<!-- ENDIF --> <!-- IF not LOGGED_IN -->disabled<!-- ENDIF --> />
<label><input type="checkbox" name="notify" <!-- IF QR_NOTIFY_CHECKED -->checked<!-- ENDIF -->/>
{L_QR_NOTIFY}&nbsp;</label>
</td>
</tr>