Ignore:
Timestamp:
Mar 16, 2006, 11:34:45 PM (18 years ago)
Author:
plg
Message:

bug fixed: create_navigation_bar take into account clean URL if requested.

deletion: argument link_class (HTML class of links) in function
create_navigation_bar was removed, useless since branch 1.5.

bug fixed: rate_items are now a configuration parameter (set in config file)

modification: new functions library functions_rate.inc.php to reduce
picture.php length.

bug fixed: categories were never expanded in the menu since clean URLs.

bug fixed: changing pictures sorting order in main page was always
rederecting to root category.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/picture_comment.inc.php

    r1082 r1084  
    130130
    131131  // navigation bar creation
    132   $url = PHPWG_ROOT_PATH.'picture.php';
    133   $url.= get_query_string_diff(array('add_fav','start'));
    134 
    135 //   $url = duplicate_picture_URL(
    136 //     array(),
    137 //     array('start')
    138 //     );
    139 
    140   if (!isset($_GET['start'])
    141       or !is_numeric($_GET['start'])
    142       or (is_numeric($_GET['start']) and $_GET['start'] < 0))
     132  if (!isset($page['start']))
    143133  {
    144134    $page['start'] = 0;
    145135  }
    146   else
    147   {
    148     $page['start'] = $_GET['start'];
    149   }
     136 
    150137  $page['navigation_bar'] = create_navigation_bar(
    151     $url,
     138    duplicate_picture_URL(array(), array('start')),
    152139    $row['nb_comments'],
    153140    $page['start'],
    154141    $conf['nb_comment_page'],
    155     ''
     142    true // We want a clean URL
    156143    );
    157144 
     
    199186          'comments.comment.delete',
    200187          array(
    201             'U_COMMENT_DELETE' => $url.'&amp;del='.$row['id']
     188            'U_COMMENT_DELETE' =>
     189              $url_self
     190              .'&amp;action=delete_comment'
     191              .'&amp;comment_to_delete='.$row['id']
    202192            )
    203193          );
Note: See TracChangeset for help on using the changeset viewer.