From 7240d693de33dc3b66fadbf0d11c2f23be67ea24 Mon Sep 17 00:00:00 2001 From: cweiske Date: Tue, 19 Jan 2010 20:23:23 +0000 Subject: Implement request #2934872: Option to set the "no description" description. Patch by fnorder@users.sourceforge.net git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@615 b3834d28-1941-0410-a4f8-b48e95affb8f --- data/config.default.php | 11 +++++++++++ data/templates/bookmarks.tpl.php | 2 +- doc/ChangeLog | 2 ++ 3 files changed, 14 insertions(+), 1 deletion(-) diff --git a/data/config.default.php b/data/config.default.php index c3c3b58..a0010e9 100644 --- a/data/config.default.php +++ b/data/config.default.php @@ -388,6 +388,17 @@ $defaultOrderBy = 'date_desc'; */ $dateOrderField = 'bModified'; +/** + * What to show instead of a description if + * a bookmark has none. + * Default is '-'. Setting this to '' will collapse + * the description row for bookmarks without + * a description. + * + * @var string + */ +$blankDescription = '-'; + /** * Number of entries that are shown in * the RSS feed by default. diff --git a/data/templates/bookmarks.tpl.php b/data/templates/bookmarks.tpl.php index c6a87c2..9418563 100644 --- a/data/templates/bookmarks.tpl.php +++ b/data/templates/bookmarks.tpl.php @@ -334,7 +334,7 @@ if($currenttag!= '') { echo '\n"; if ($row['bDescription'] == '') { - $bkDescription = '-'; + $bkDescription = $GLOBALS['blankDescription']; } else { // Improve description display (anchors, links, ...) $bkDescription = preg_replace('|\[\/.*?\]|', '', filter($row['bDescription'])); // remove final anchor diff --git a/doc/ChangeLog b/doc/ChangeLog index e5022ef..1f44ed9 100644 --- a/doc/ChangeLog +++ b/doc/ChangeLog @@ -13,6 +13,8 @@ ChangeLog for SemantiScuttle - Fix several SQL injection possibilities - Implement request #2934868: Do not display full redirection URL Patch by fnorder@users.sourceforge.net +- Implement request #2934872: Option to set the "no description" + description. Patch by fnorder@users.sourceforge.net 0.95.2 - 2010-01-16 -- cgit v1.2.3