diff options
-rw-r--r-- | comments.php | 5 | ||||
-rw-r--r-- | include/functions_html.inc.php | 3 |
2 files changed, 5 insertions, 3 deletions
diff --git a/comments.php b/comments.php index 829a7055e..28f4bf410 100644 --- a/comments.php +++ b/comments.php @@ -308,7 +308,7 @@ $query.= ' ;'; list($counter) = mysql_fetch_row(pwg_query($query)); -$url = PHPWG_ROOT_PATH.'comments.php?t=1'.get_query_string_diff(array('start')); +$url = PHPWG_ROOT_PATH.'comments.php'.get_query_string_diff(array('start')); $navbar = create_navigation_bar($url, $counter, @@ -382,7 +382,7 @@ SELECT id, name, file, path, tn_ext // retrieving category informations $categories = array(); $query = ' -SELECT id, uppercats +SELECT id, name, uppercats FROM '.CATEGORIES_TABLE.' WHERE id IN ('.implode(',', $category_ids).') ;'; @@ -417,6 +417,7 @@ SELECT id, uppercats $url = make_picture_url( array( 'category' => $comment['category_id'], + 'cat_name' => $categories[ $comment['category_id']] ['name'], 'image_id' => $comment['image_id'], 'image_file' => $elements[$comment['image_id']]['file'], ) diff --git a/include/functions_html.inc.php b/include/functions_html.inc.php index 993c46dea..58cf3b8e1 100644 --- a/include/functions_html.inc.php +++ b/include/functions_html.inc.php @@ -82,7 +82,8 @@ function create_navigation_bar( global $lang, $conf; $pages_around = $conf['paginate_pages_around']; - $start_str = $clean_url ? '/start-' : '&start='; + $start_str = $clean_url ? '/start-' : + ( ( strstr($url, '?')===false ? '?':'&') . 'start=' ); $navbar = ''; |