[geeklog-hg] geeklog: Fix for changeset b92e025c5b71

geeklog-cvs at lists.geeklog.net geeklog-cvs at lists.geeklog.net
Sat Dec 28 23:54:04 EST 2013


changeset 9356:ce787960f538
url:  http://project.geeklog.net/cgi-bin/hgwebdir.cgi/geeklog/rev/ce787960f538
user: dengen <taharaxp at gmail.com>
date: Sun Dec 29 13:52:37 2013 +0900
description:
Fix for changeset b92e025c5b71

diffstat:

 system/lib-story.php |  9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diffs (19 lines):

diff -r 9bd79c4be14e -r ce787960f538 system/lib-story.php
--- a/system/lib-story.php	Sat Dec 28 10:46:50 2013 -0500
+++ b/system/lib-story.php	Sun Dec 29 13:52:37 2013 +0900
@@ -146,8 +146,13 @@
     }
     
     // Main article content
-    $introtext = $story->getPreviewText('introtext');
-    $bodytext  = $story->getPreviewText('bodytext');
+    if ($index == 'p') {
+        $introtext = $story->getPreviewText('introtext');
+        $bodytext  = $story->getPreviewText('bodytext');
+    } else {
+        $introtext = $story->displayElements('introtext');
+        $bodytext  = $story->displayElements('bodytext');
+    }
     $readmore = empty($bodytext)?0:1;
     $numwords = COM_numberFormat(count(explode(' ', COM_getTextContent($bodytext))));
     if (COM_onFrontpage()) {



More information about the geeklog-cvs mailing list