git.shiar.nl
/
minimedit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
nieuws: hide text after cover image in overviews
[minimedit.git]
/
nieuws.inc.php
diff --git
a/nieuws.inc.php
b/nieuws.inc.php
index e5e1ffa3664c764d2a292c8da87be1311baafda9..b58def7b7302bdad9ac4e41cc7e93c1155d6cbb2 100644
(file)
--- a/
nieuws.inc.php
+++ b/
nieuws.inc.php
@@
-78,7
+78,7
@@
class ArchiveArticle
{
$this->title;
$rest = fread($this->file, filesize($this->page));
{
$this->title;
$rest = fread($this->file, filesize($this->page));
- if ( preg_match('{\n<p>(<img [^>]*>)</p>
\s*\z
}', $rest, $img, PREG_OFFSET_CAPTURE) ) {
+ if ( preg_match('{\n<p>(<img [^>]*>)</p>}', $rest, $img, PREG_OFFSET_CAPTURE) ) {
$this->img = $img[1][0];
return substr($rest, 0, $img[0][1]);
}
$this->img = $img[1][0];
return substr($rest, 0, $img[0][1]);
}