From 90e690d6cda713a8bf17cd6c382e4ca36a09a7e5 Mon Sep 17 00:00:00 2001
From: Graham Cole <chckens@sucs.org>
Date: Sat, 19 Jan 2008 22:13:08 +0000
Subject: [PATCH] (hopefully) fix article summary to work around newlines in
 the first paragraph

---
 plugins/function.articlesummary.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/plugins/function.articlesummary.php b/plugins/function.articlesummary.php
index ee321e1..7802ab0 100644
--- a/plugins/function.articlesummary.php
+++ b/plugins/function.articlesummary.php
@@ -9,7 +9,7 @@
 		$linky = "<span style=\"float: right\"><a href=\"/News/".rawurlencode($title)."\">Read More</a></span>";
 
 		$matches = array();
-		preg_match("/^(<p>.*?<\/p>)/", $article, $matches);
+		preg_match("/^(<p>.*?<\/p>)/s", $article, $matches);
 		$summary = preg_replace("/<\/p>/","$linky</p>", $matches[0]);
 		return $summary;
 	}
-- 
GitLab