# HG changeset patch # User Dan # Date 1203221803 18000 # Node ID 0475c9ed13867ad9f1c9657c0c8c3420901029ef # Parent d8a281557365b459da7ac8c3bc7fe3efcd6f3791# Parent 08bf8aa2f0ab4d6e204216520215d84fbb3bec75 Oh goodness, Scribus still says there are uncommitted changes. diff -r 08bf8aa2f0ab -r 0475c9ed1386 plugins/gallery/browser.php --- a/plugins/gallery/browser.php Sat Feb 16 23:15:49 2008 -0500 +++ b/plugins/gallery/browser.php Sat Feb 16 23:16:43 2008 -0500 @@ -118,26 +118,10 @@ // Determine number of pictures per page $template->load_theme(); - global $theme; - $fn = ENANO_ROOT . '/themes/' . $template->theme . '/theme.cfg'; - require( $fn ); - if ( isset($theme['snapr_gallery_rows']) ) - { - $rows_in_browser = intval($theme['snapr_gallery_rows']); - if ( empty($rows_in_browser) ) - { - $rows_in_browser = 5; - } - } - else - { - $rows_in_browser = 5; - } - $where = 'WHERE folder_parent IS NULL ' . "\n ORDER BY is_folder DESC, $sort_column $sort_order, img_title ASC"; $parms = $paths->getAllParams(); - $sql = "SELECT img_id, img_title, is_folder FROM ".table_prefix."gallery $where;"; + $sql = "SELECT img_id, img_title, is_folder, 'NULL' AS folder_id FROM ".table_prefix."gallery $where;"; // Breadcrumb browser $breadcrumbs = array(); @@ -330,6 +314,7 @@ { if ( !isset($first_row['folder_id']) ) { + //die('FALLING
' . print_r($first_row, true) . ''); $first_row['folder_id'] =& $first_row['img_id']; } if ( !isset($first_row['folder_id']) ) diff -r 08bf8aa2f0ab -r 0475c9ed1386 plugins/gallery/search.php --- a/plugins/gallery/search.php Sat Feb 16 23:15:49 2008 -0500 +++ b/plugins/gallery/search.php Sat Feb 16 23:16:43 2008 -0500 @@ -156,7 +156,7 @@ ' . $text . '