Changeset 511 for trunk/picture.php


Ignore:
Timestamp:
Sep 1, 2004, 11:56:24 PM (20 years ago)
Author:
z0rglub
Message:
  • refactoring
  • adaptation of the URL for searching associated keywords to the new search URL string
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/picture.php

    r507 r511  
    584584          ));
    585585// keywords
    586 if ( !empty($picture['current']['keywords']))
    587 {
    588   $keywords = explode( ',', $picture['current']['keywords'] );
     586if (!empty($picture['current']['keywords']))
     587{
     588  $keywords = explode(',', $picture['current']['keywords']);
    589589  $content = '';
    590   $url = PHPWG_ROOT_PATH.'category.php?cat=search';
    591   $url.= '&mode=OR&search=';
    592   foreach ( $keywords as $i => $keyword ) {
    593     $local_url = add_session_id( $url.$keyword );
    594     if ( $i > 0 ) $content.= ',';
     590  $url = PHPWG_ROOT_PATH.'category.php?cat=search&search=keywords:';
     591  foreach ($keywords as $i => $keyword)
     592  {
     593    $local_url = add_session_id($url.$keyword);
     594    if ($i > 0)
     595    {
     596      $content.= ',';
     597    }
    595598    $content.= '<a href="'.$local_url.'">'.$keyword.'</a>';
    596599  }
    597   $template->assign_block_vars('info_line', array(
    598     'INFO'=>$lang['keywords'],
    599     'VALUE'=>$content
    600     ));
     600  $template->assign_block_vars(
     601    'info_line',
     602    array(
     603      'INFO'=>$lang['keywords'],
     604      'VALUE'=>$content
     605      ));
    601606}
    602607// number of visits
Note: See TracChangeset for help on using the changeset viewer.