page: extend teaser range of fallback paragraph
authorMischa POSLAWSKY <perl@shiar.org>
Sat, 16 May 2020 23:33:36 +0000 (01:33 +0200)
committerMischa POSLAWSKY <perl@shiar.org>
Sat, 16 May 2020 23:33:36 +0000 (01:33 +0200)
Arbitrarily increase allowed separation to 512 bytes, as Lijtweg index page
introduction recently moved beyond 256 because of longer image paths.

article.inc.php

index 503c5a13869349c6f3ea0d450a3d1f9aa39edd05..53102bac4065b11ec7630897329e131561ce551d 100644 (file)
@@ -132,7 +132,7 @@ class ArchiveArticle
                        </h2> (?: \s+ | <p\sclass="nav\b.*?</p> | <div[^>]*> )* <p> \s* (.*?) </p>
                }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];
                        }
                }