diff -r 10d663f5ed88 -r ad3b061a1c76 plugins/gallery/browser.php
--- a/plugins/gallery/browser.php Wed Jul 25 18:25:24 2007 -0400
+++ b/plugins/gallery/browser.php Wed Jul 25 20:25:02 2007 -0400
@@ -86,6 +86,11 @@
$image_url = makeUrlNS('Special', 'GalleryFetcher/thumb/' . $row['img_id']);
}
+ if ( isset($row['score']) )
+ {
+ $row['score'] = number_format($row['score'], 2);
+ }
+
$image_url_js = addslashes($image_link);
$jsclick = ( $session->user_level < USER_LEVEL_ADMIN ) ? ' onclick="window.location=\'' . $image_url_js . '\'"' : '';
@@ -96,11 +101,11 @@
if ( $session->user_level < USER_LEVEL_ADMIN )
{
- $out .= $title_safe;
+ $out .= $title_safe . ( isset($row['score']) ? "
Relevance: {$row['score']}" : '' );
}
else if ( $session->user_level >= USER_LEVEL_ADMIN )
{
- $out .= '