From aa608b4169fdb70be3d39a2dd8b42adfee3d928b Mon Sep 17 00:00:00 2001 From: vargenau Date: Wed, 2 Jul 2014 09:10:30 +0000 Subject: [PATCH] Fix undefined $summary warning git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@8947 96ab9672-09ca-45d6-a79d-3d69d39ca109 --- lib/plugin/WikiBlog.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/plugin/WikiBlog.php b/lib/plugin/WikiBlog.php index c029593a9..3c2043754 100644 --- a/lib/plugin/WikiBlog.php +++ b/lib/plugin/WikiBlog.php @@ -305,9 +305,10 @@ class WikiPlugin_WikiBlog if ($type == 'wikiblog') $basepage = "Blog"; elseif ($type == 'comment') - $basepage = "Comment"; elseif ($type == 'wikiforum') - $basepage = substr($summary, 0, 12); - //$basepage = _("Message"); // FIXME: we use now the first 12 chars of the summary + $basepage = "Comment"; + elseif ($type == 'wikiforum') + // $basepage = substr($summary, 0, 12); + $basepage = _("Message"); // FIXME: we use now the first 12 chars of the summary return $basepage; } -- 2.45.0