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:
2c4ab34
)
page: fix titleless article teaser fallback
author
Mischa POSLAWSKY
<perl@shiar.org>
Wed, 1 Jan 2020 05:44:40 +0000
(06:44 +0100)
committer
Mischa POSLAWSKY
<perl@shiar.org>
Wed, 1 Jan 2020 10:10:37 +0000
(11:10 +0100)
Broken since commit
v4.0-28-gb3aec6cf1c
(2019-11-09)
[page: replace output caching by article object].
article.inc.php
patch
|
blob
|
history
diff --git
a/article.inc.php
b/article.inc.php
index ea958fadd171a9a87de4e645f5d78d82a8c3a116..541d35e9f0958b78a606ce0ec71bdd1a808f8520 100644
(file)
--- a/
article.inc.php
+++ b/
article.inc.php
@@
-109,7
+109,7
@@
class ArchiveArticle
# starting paragraph for documents without title (assumed simple/partial)
if (strpos($this->raw, '<h2') === FALSE and preg_match('{
- \A <p> \s* (.*?) </p>
+ \A
(?: <div [^>]*> \s* )*
<p> \s* (.*?) </p>
}sx', $this->raw, $bodyp)) {
return $bodyp[1];
}