r2538 - renderSearchResults(): employ renderFileCell()
authorDenis Ovsienko <infrastation@yandex.ru>
Thu, 12 Mar 2009 12:18:13 +0000 (12:18 +0000)
committerDenis Ovsienko <infrastation@yandex.ru>
Thu, 12 Mar 2009 12:18:13 +0000 (12:18 +0000)
inc/interface.php

index 55d85c535a5cbddf4a163d615d737efb50f06bf5..a3f4877f72e515a7360181620e419a07f16537d9 100644 (file)
@@ -3247,12 +3247,11 @@ function renderSearchResults ()
                                case 'file':
                                        startPortlet ("<a href='${root}?page=files'>Files</a>");
                                        echo '<table border=0 cellpadding=5 cellspacing=0 align=center class=cooltable>';
-                                       echo '<tr><th>Name</th><th>Comment</th></tr>';
                                        foreach ($what as $item)
                                        {
-                                               echo "<tr class=row_${order}><td class=tdleft><a href='${root}?page=file&file_id=${item['id']}'>";
-                                               echo $item['name'];
-                                               echo "</a></td><td class=tdleft>${item['comment']}</td></tr>";
+                                               echo "<tr class=row_${order}><td class=tdleft>";
+                                               renderFileCell ($item);
+                                               echo "</td></tr>";
                                                $order = $nextorder[$order];
                                        }
                                        echo '</table>';