[geeklog-cvs] geeklog: Use the page title as a title attribute, if present

geeklog-cvs at lists.geeklog.net geeklog-cvs at lists.geeklog.net
Sat Mar 27 15:38:04 EDT 2010


changeset 7850:41c9710cadec
url:  http://project.geeklog.net/cgi-bin/hgwebdir.cgi/geeklog/rev/41c9710cadec
user: Dirk Haun <dirk at haun-online.de>
date: Sat Mar 27 19:30:05 2010 +0100
description:
Use the page title as a title attribute, if present

diffstat:

 plugins/staticpages/functions.inc |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (17 lines):

diff -r ffbda0399cb8 -r 41c9710cadec plugins/staticpages/functions.inc
--- a/plugins/staticpages/functions.inc	Sat Mar 27 19:25:20 2010 +0100
+++ b/plugins/staticpages/functions.inc	Sat Mar 27 19:30:05 2010 +0100
@@ -1373,8 +1373,11 @@
         $sp_title = stripslashes($A['sp_title']);
         $url = COM_buildUrl($_CONF['site_url'] .
                             '/staticpages/index.php?page=' . $A['sp_id']);
-        $retval = COM_createLink($sp_title, $url,
-                    array('title' => $LANG_STATIC['title_display']));
+        $attr = array();
+        if (! empty($A['sp_page_title'])) {
+            $attr['title'] = htmlspecialchars($A['sp_page_title']);
+        }
+        $retval = COM_createLink($sp_title, $url, $attr);
         break;
 
     case 'username':



More information about the geeklog-cvs mailing list