fix: fondu du repli par masque CSS, indépendant du thème
Le dégradé vers --frss-background-color laissait une bande visible en thème sombre (fond de l'article différent). Durcit aussi reset.php des tests e2e (écriture atomique, attente de la revalidation opcache). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
07f936ae80
commit
ccb230d514
3 files changed
+23
-13
No files matched your search
+8
-1
@@ -13,7 +13,14 @@ $conf['extensions_enabled']['Read More'] = true;
|
||||
$conf['extensions']['Read More']['collapsed_height'] = $height;
|
||||
$conf['mark_when']['scroll'] = true;
|
||||
$conf['view_mode'] = 'reader';
|
||||
file_put_contents($file, "<?php\nreturn " . var_export($conf, true) . ";\n");
|
||||
$new = "<?php\nreturn " . var_export($conf, true) . ";\n";
|
||||
// Only rewrite when changed, atomically: Apache's opcache revalidates every 2 s
|
||||
// and a half-written or freshly rewritten config can be served stale.
|
||||
if ($new !== file_get_contents($file)) {
|
||||
file_put_contents("$file.tmp", $new);
|
||||
rename("$file.tmp", $file);
|
||||
sleep(3);
|
||||
}
|
||||
|
||||
$pdo = new PDO("sqlite:$dir/db.sqlite");
|
||||
$pdo->exec('UPDATE entry SET is_read = 0');
|
||||
|
||||
Reference in new issue
Block a user