]> git.mjollnir.org Git - s9y.git/commitdiff
Show category description on mouse over
authorgarvinhicking <garvinhicking>
Tue, 26 Jul 2005 19:30:15 +0000 (19:30 +0000)
committergarvinhicking <garvinhicking>
Tue, 26 Jul 2005 19:30:15 +0000 (19:30 +0000)
docs/NEWS
include/plugin_internal.inc.php

index 13f49ca80d5c4dd1e649ca175bd2d3f854a86bc5..922001776dc28498652c16ac1cd55b6387b1ec0f 100644 (file)
--- a/docs/NEWS
+++ b/docs/NEWS
@@ -174,6 +174,9 @@ Version 0.8.3 ()
        XML_RPC         to 1.3.3
      Fixing several bugs and vulnerabilities. (nohn)
 
+   * Make categories sidebar plugin show categories' description, not the
+     name on mouse over (garvinhicking)
+
    * Fix possible exploit that sends comments to the blog owner and others
      with arbitrary mailheaders and a link to invalid entries. Thanks to
      Sebastian Raible! (garvinhicking)
index 3f6e2f110e34c461e7441327d45ca95b4867a272..3038406e2af34fcbb5eb218059a86abfa9ef27c8 100644 (file)
@@ -1201,7 +1201,7 @@ class serendipity_categories_plugin extends serendipity_plugin {
                 if ( !empty($image) ) {
                     $html .= '<a href="'. serendipity_feedCategoryURL($cat, 'serendipityHTTPPath') .'"><img src="'. $image .'" alt="XML" style="border: 0px" /></a> ';
                 }
-                $html .= '<a href="'. serendipity_categoryURL($cat, 'serendipityHTTPPath') .'" title="'. $cat['category_name'] .'" style="padding-left: '. $cat['depth']*6 .'px">'. $cat['category_name'] .'</a>';
+                $html .= '<a href="'. serendipity_categoryURL($cat, 'serendipityHTTPPath') .'" title="'. htmlspecialchars($cat['category_description']) .'" style="padding-left: '. $cat['depth']*6 .'px">'. htmlspecialchars($cat['category_name']) .'</a>';
                 $html .= '</div>' . "\n";
             }
         }