Changeset 1090 for trunk/comments.php


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/comments.php

    r1082 r1090  
    184184    'F_KEYWORD'=>@$_GET['keyword'],
    185185    'F_AUTHOR'=>@$_GET['author'],
    186    
     186
    187187    'U_HOME' => make_index_url(),
    188188    )
     
    221221{
    222222  $selected = ($id == $page['since']) ? 'selected="selected"' : '';
    223  
     223
    224224  $template->assign_block_vars(
    225225    $blockname,
     
    404404      $name.= get_name_from_file($elements[$comment['image_id']]['file']);
    405405    }
    406    
     406
    407407    // source of the thumbnail picture
    408408    $thumbnail_src = get_thumbnail_src(
     
    410410      @$elements[$comment['image_id']]['tn_ext']
    411411      );
    412  
     412
    413413    // link to the full size picture
    414414    $url = PHPWG_ROOT_PATH.'picture.php?cat='.$comment['category_id'];
    415415    $url.= '&image_id='.$comment['image_id'];
    416    
     416
     417    $url = make_picture_url(
     418            array(
     419              'category' => $comment['category_id'],
     420              'image_id' => $comment['image_id'],
     421              'image_file' => $elements[$comment['image_id']]['file'],
     422            )
     423          );
     424
    417425    $template->assign_block_vars(
    418426      'picture',
     
    422430        'U_THUMB'=>$url
    423431        ));
    424    
     432
    425433    $author = $comment['author'];
    426434    if (empty($comment['author']))
     
    428436      $author = l10n('guest');
    429437    }
    430    
     438
    431439    $template->assign_block_vars(
    432440      'comment',
Note: See TracChangeset for help on using the changeset viewer.