git.shiar.nl
/
minimedit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bc04734
)
page: extend teaser range of fallback paragraph
author
Mischa POSLAWSKY
<perl@shiar.org>
Sat, 16 May 2020 23:33:36 +0000
(
01:33
+0200)
committer
Mischa 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
patch
|
blob
|
history
diff --git
a/article.inc.php
b/article.inc.php
index 503c5a13869349c6f3ea0d450a3d1f9aa39edd05..53102bac4065b11ec7630897329e131561ce551d 100644
(file)
--- a/
article.inc.php
+++ b/
article.inc.php
@@
-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];
}
}