Ignore:
Timestamp:
Mar 21, 2006, 2:27:21 AM (18 years ago)
Author:
rvelices
Message:

URL rewriting: fix some old links, calendar simplification and prepare code
for urls without ? (added functions get_root_url and add_url_param)

File:
1 edited

Legend:

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

    r1084 r1090  
    2828/**
    2929 * This file is included by the picture page to manage user comments
    30  * 
     30 *
    3131 */
    3232
    33 if ( isset( $_POST['content'] ) && !empty($_POST['content']) )
     33if ( isset( $_POST['content'] ) and !empty($_POST['content']) )
    3434{
    3535  $register_comment = true;
     
    134134    $page['start'] = 0;
    135135  }
    136  
     136
    137137  $page['navigation_bar'] = create_navigation_bar(
    138138    duplicate_picture_URL(array(), array('start')),
     
    142142    true // We want a clean URL
    143143    );
    144  
     144
    145145  $template->assign_block_vars(
    146146    'comments',
     
    171171            ? $lang['guest']
    172172            : $row['author'],
    173          
     173
    174174          'COMMENT_DATE' => format_date(
    175175            $row['date'],
    176176            'mysql_datetime',
    177177            true),
    178          
     178
    179179          'COMMENT' => parse_comment_content($row['content']),
    180180          )
     
    187187          array(
    188188            'U_COMMENT_DELETE' =>
    189               $url_self
    190               .'&action=delete_comment'
    191               .'&comment_to_delete='.$row['id']
     189              add_url_param( $url_self,
     190                  'action=delete_comment&comment_to_delete='.$row['id']
     191                )
    192192            )
    193193          );
Note: See TracChangeset for help on using the changeset viewer.