# HG changeset patch
# User Dan
# Date 1185409502 14400
# Node ID ad3b061a1c76f978eddd8ca7156311f074cb07cc
# Parent 10d663f5ed888c64a06cc2709a3be8ab61e05bb1
A few minor bugfixes and visual enhancements for admins
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 .= '