Changeset 1563


Ignore:
Timestamp:
Oct 17, 2006, 4:03:14 AM (18 years ago)
Author:
rvelices
Message:

comments.php: cleanup url (t=1 in the url for an unknown reason) and image
urls work now with all url styles

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/comments.php

    r1536 r1563  
    159159}
    160160// comments validation
    161 if (isset($_POST['validate']) and count($_POST['comment_id']) > 0 
     161if (isset($_POST['validate']) and count($_POST['comment_id']) > 0
    162162   and is_admin())
    163163{
     
    309309list($counter) = mysql_fetch_row(pwg_query($query));
    310310
    311 $url = PHPWG_ROOT_PATH.'comments.php?t=1'.get_query_string_diff(array('start'));
     311$url = PHPWG_ROOT_PATH.'comments.php'.get_query_string_diff(array('start'));
    312312
    313313$navbar = create_navigation_bar($url,
     
    383383  $categories = array();
    384384  $query = '
    385 SELECT id, uppercats
     385SELECT id, name, uppercats
    386386  FROM '.CATEGORIES_TABLE.'
    387387  WHERE id IN ('.implode(',', $category_ids).')
     
    418418            array(
    419419              'category' => $comment['category_id'],
     420              'cat_name' => $categories[ $comment['category_id']] ['name'],
    420421              'image_id' => $comment['image_id'],
    421422              'image_file' => $elements[$comment['image_id']]['file'],
  • trunk/include/functions_html.inc.php

    r1310 r1563  
    8383
    8484  $pages_around = $conf['paginate_pages_around'];
    85   $start_str = $clean_url ? '/start-' : '&start=';
     85  $start_str = $clean_url ? '/start-' :
     86    ( ( strstr($url, '?')===false ? '?':'&') . 'start=' );
    8687
    8788  $navbar = '';
Note: See TracChangeset for help on using the changeset viewer.