[geeklog-cvs] geeklog: Fixed extraction of "related" links so that they also w...
geeklog-cvs at lists.geeklog.net
geeklog-cvs at lists.geeklog.net
Sat Mar 19 17:47:24 EDT 2011
changeset 8188:72e239d6633b
url: http://project.geeklog.net/cgi-bin/hgwebdir.cgi/geeklog/rev/72e239d6633b
user: Dirk Haun <dirk at haun-online.de>
date: Sat Mar 19 22:47:17 2011 +0100
description:
Fixed extraction of "related" links so that they also work for wiki-formatted articles (part of bug #0001291)
diffstat:
system/classes/story.class.php | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (28 lines):
diff -r f7e652015b7b -r 72e239d6633b system/classes/story.class.php
--- a/system/classes/story.class.php Sat Mar 19 19:59:43 2011 +0100
+++ b/system/classes/story.class.php Sat Mar 19 22:47:17 2011 +0100
@@ -2,13 +2,13 @@
/* Reminder: always indent with 4 spaces (no tabs). */
// +---------------------------------------------------------------------------+
-// | Geeklog 1.6 |
+// | Geeklog 1.8 |
// +---------------------------------------------------------------------------+
// | story.class.php |
// | |
// | Geeklog Story Abstraction. |
// +---------------------------------------------------------------------------+
-// | Copyright (C) 2006-2010 by the following authors: |
+// | Copyright (C) 2006-2011 by the following authors: |
// | |
// | Authors: Michael Jervis, mike AT fuckingbrit DOT com |
// +---------------------------------------------------------------------------+
@@ -752,7 +752,7 @@
*/
// Get the related URLs
- $this->_related = implode("\n", STORY_extractLinks("{$this->_introtext} {$this->_bodytext}"));
+ $this->_related = implode("\n", STORY_extractLinks($this->DisplayElements('introtext') . ' ' . $this->DisplayElements('bodytext')));
$fields='';
$values = '';
reset($this->_dbFields);
More information about the geeklog-cvs
mailing list