Changeset 26088
- Timestamp:
- Dec 22, 2013, 7:46:47 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/comments.php
r25018 r26088 38 38 // +-----------------------------------------------------------------------+ 39 39 check_status(ACCESS_GUEST); 40 41 $url_self = PHPWG_ROOT_PATH.'comments.php' 42 .get_query_string_diff(array('delete','edit','validate','pwg_token')); 40 43 41 44 $sort_order = array( … … 285 288 if ($perform_redirect) 286 289 { 287 $redirect_url = 288 PHPWG_ROOT_PATH 289 .'comments.php' 290 .get_query_string_diff(array('delete','edit','validate','pwg_token')); 291 292 redirect($redirect_url); 290 redirect($url_self); 293 291 } 294 292 } … … 387 385 list($counter) = pwg_db_fetch_row(pwg_query($query)); 388 386 389 $url = PHPWG_ROOT_PATH 390 .'comments.php' 391 .get_query_string_diff(array('start','delete','validate','pwg_token')); 387 $url = PHPWG_ROOT_PATH.'comments.php' 388 .get_query_string_diff(array('start','edit','delete','validate','pwg_token')); 392 389 393 390 $navbar = create_navigation_bar($url, … … 398 395 399 396 $template->assign('navbar', $navbar); 400 401 $url_self = PHPWG_ROOT_PATH402 .'comments.php'403 .get_query_string_diff(array('edit','delete','validate','pwg_token'));404 397 405 398 // +-----------------------------------------------------------------------+ … … 537 530 if (can_manage_comment('delete', $comment['author_id'])) 538 531 { 539 $url =540 get_root_url()541 .'comments.php'542 .get_query_string_diff(array('delete','validate','edit', 'pwg_token'));543 544 532 $tpl_comment['U_DELETE'] = add_url_params( 545 $url ,533 $url_self, 546 534 array( 547 535 'delete' => $comment['comment_id'], … … 553 541 if (can_manage_comment('edit', $comment['author_id'])) 554 542 { 555 $url =556 get_root_url()557 .'comments.php'558 .get_query_string_diff(array('edit', 'delete','validate', 'pwg_token'));559 560 543 $tpl_comment['U_EDIT'] = add_url_params( 561 $url ,544 $url_self, 562 545 array( 563 546 'edit' => $comment['comment_id'] … … 582 565 { 583 566 $tpl_comment['U_VALIDATE'] = add_url_params( 584 $url ,567 $url_self, 585 568 array( 586 569 'validate'=> $comment['comment_id'],
Note: See TracChangeset
for help on using the changeset viewer.