[geeklog-cvs] geeklog: No need to prepare bodytext when display the index page...
geeklog-cvs at lists.geeklog.net
geeklog-cvs at lists.geeklog.net
Sun Jan 30 07:00:44 EST 2011
changeset 8087:7d2d84793f36
url: http://project.geeklog.net/cgi-bin/hgwebdir.cgi/geeklog/rev/7d2d84793f36
user: Dirk Haun <dirk at haun-online.de>
date: Sun Jan 30 12:54:43 2011 +0100
description:
No need to prepare bodytext when display the index page (patch #0001204, provided by LWC)
diffstat:
system/lib-story.php | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
diffs (27 lines):
diff -r 891117f0404f -r 7d2d84793f36 system/lib-story.php
--- a/system/lib-story.php Sat Jan 29 22:15:14 2011 +0100
+++ b/system/lib-story.php Sun Jan 30 12:54:43 2011 +0100
@@ -8,7 +8,7 @@
// | |
// | Story-related functions needed in more than one place. |
// +---------------------------------------------------------------------------+
-// | Copyright (C) 2000-2010 by the following authors: |
+// | Copyright (C) 2000-2011 by the following authors: |
// | |
// | Authors: Tony Bibbs - tony AT tonybibbs DOT com |
// | Mark Limburg - mlimburg AT users DOT sourceforge DOT net |
@@ -81,7 +81,13 @@
}
$introtext = $story->displayElements('introtext');
- $bodytext = $story->displayElements('bodytext');
+ if (($index == 'n') || ($index == 'p')) {
+ $bodytext = $story->displayElements('bodytext');
+ } else {
+ // for the index page, we don't need the body text anyway
+ // also saves processing autotags
+ $bodytext = '';
+ }
if( !empty( $query ))
{
More information about the geeklog-cvs
mailing list