From: Mischa POSLAWSKY Date: Sat, 16 May 2020 23:33:36 +0000 (+0200) Subject: page: extend teaser range of fallback paragraph X-Git-Tag: v4.4~7 X-Git-Url: http://git.shiar.nl/minimedit.git/commitdiff_plain/c651a52a158ad0ab99ca837dc1f661e4d8be5ae7 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. --- 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]; } }