Hi Tibor,

a small fix for webcomment.

Ferran
Index: cds-invenio/modules/webcomment/lib/webcomment_templates.py
===================================================================
--- cds-invenio.orig/modules/webcomment/lib/webcomment_templates.py	2006-09-27 17:34:46.000000000 +0200
+++ cds-invenio/modules/webcomment/lib/webcomment_templates.py	2006-11-22 15:17:26.685767655 +0100
@@ -256,7 +256,7 @@
             nb_comments_total = str(nb_comments_total)
             score = '<b>'
             score = _("Average review score: %(x_nb_score)s based on %(x_nb_reviews)s reviews") %\
-                {'x_nb_score': '</b><img src="' + weburl + '/img/' + avg_score_img + '" alt="' + avg_score + '" />',
+                {'x_nb_score': '</b><img src="' + weburl + '/img/' + avg_score_img + '" alt="' + str(avg_score) + '" />',
                  'x_nb_reviews': nb_comments_total}
             useful_label = _("Readers found the following %s reviews to be most helpful.")
             useful_label %= CFG_WEBCOMMENT_NB_REVIEWS_IN_DETAILED_VIEW > 1 and CFG_WEBCOMMENT_NB_REVIEWS_IN_DETAILED_VIEW or ""

Reply via email to