diff -r b38afb86dcad -r f6ca7cead82c plugins/gallery/browser.php
--- a/plugins/gallery/browser.php Thu Aug 09 12:34:39 2007 -0400
+++ b/plugins/gallery/browser.php Wed Nov 21 15:22:13 2007 -0500
@@ -37,20 +37,6 @@
{
/**
- * Counter for how many cells we've printed out in this row.
- * @var int
- */
-
- var $cell_count = 0;
-
- /**
- * Icons to print per row.
- * @var int
- */
-
- var $icons_per_row = 5;
-
- /**
* Main render method, called from pagination function
* @access private
*/
@@ -59,14 +45,7 @@
{
global $db, $session, $paths, $template, $plugins; // Common objects
- $out = '';
-
- if ( $this->cell_count == $this->icons_per_row )
- {
- $out .= '
';
- $this->cell_count = 0;
- }
- $this->cell_count++;
+ $out = '';
$title_safe = $row['img_title'];
$title_safe = htmlspecialchars($title_safe);
@@ -94,18 +73,17 @@
$image_url_js = addslashes($image_link);
$jsclick = ( $session->user_level < USER_LEVEL_ADMIN ) ? ' onclick="window.location=\'' . $image_url_js . '\'"' : '';
- $out .= '
- ';
+ $out .= ' ';
- $out .= ' ';
+ $out .= ' ';
if ( $session->user_level < USER_LEVEL_ADMIN )
{
- $out .= $title_safe . ( isset($row['score']) ? " Relevance: {$row['score']}" : '' );
+ $out .= ' ' . $title_safe . ( isset($row['score']) ? " Relevance: {$row['score']}" : '' ) . '';
}
else if ( $session->user_level >= USER_LEVEL_ADMIN )
{
- $out .= ' | ';
+ $out .= '';
return $out;
}
@@ -486,9 +464,9 @@
$start = intval($_GET['start']);
}
- $per_page = $rows_in_browser * 5;
+ $per_page = 25;
- $html = paginate($img_query, '{img_id}', $db->numrows($img_query), makeUrl($paths->fullpage, 'sort=' . $sort_column . '&order=' . $sort_order . '&start=%s', false), $start, $per_page, $callers, '');
+ $html = paginate($img_query, '{img_id}', $db->numrows($img_query), makeUrl($paths->fullpage, 'sort=' . $sort_column . '&order=' . $sort_order . '&start=%s', false), $start, $per_page, $callers, '');
echo $html;
if ( $session->user_level >= USER_LEVEL_ADMIN )