From 17e4e5570e47bae1f82ec13eab296644a73610e3 Mon Sep 17 00:00:00 2001 From: "Marcel Kapfer (mmk2410)" Date: Mon, 6 Jun 2016 22:21:38 +0200 Subject: [PATCH] "temporary" fix for ArticleGenerator::getSummary --- res/php/ArticleGenerator.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/res/php/ArticleGenerator.php b/res/php/ArticleGenerator.php index f259c9d..f21da14 100644 --- a/res/php/ArticleGenerator.php +++ b/res/php/ArticleGenerator.php @@ -196,15 +196,15 @@ class ArticleGenerator */ static function getSummary($directory, $articlefile) { - $text = getText($directory, $articlefile); + $text = ArticleGenerator::getText($directory, $articlefile); $pos = stripos($text, "."); if ($pos) { - $offset = $pos + 1; + $offset = $pos; $pos = stripos($text, ".", $offset); $summary = substr($text, 0, $pos) . "."; - return $summary; + return trim($summary); } else { return $text; }