From c651a52a158ad0ab99ca837dc1f661e4d8be5ae7 Mon Sep 17 00:00:00 2001 From: Mischa POSLAWSKY Date: Sun, 17 May 2020 01:33:36 +0200 Subject: [PATCH] page: extend teaser range of fallback paragraph Arbitrarily increase allowed separation to 512 bytes, as Lijtweg index page introduction recently moved beyond 256 because of longer image paths. --- article.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/article.inc.php b/article.inc.php index 503c5a1..53102ba 100644 --- a/article.inc.php +++ b/article.inc.php @@ -132,7 +132,7 @@ class ArchiveArticle (?: \s+ | | ]*> )*

\s* (.*?)

}sx', $this->raw, $bodyp, PREG_OFFSET_CAPTURE)) { # fallback paragraph contents following the page header - if ($bodyp[1][1] < 256) { + if ($bodyp[1][1] < 512) { return $bodyp[1][0]; } } -- 2.30.0