Changeset 511 for trunk/picture.php
- Timestamp:
- Sep 1, 2004, 11:56:24 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/picture.php
r507 r511 584 584 )); 585 585 // keywords 586 if ( 587 { 588 $keywords = explode( ',', $picture['current']['keywords']);586 if (!empty($picture['current']['keywords'])) 587 { 588 $keywords = explode(',', $picture['current']['keywords']); 589 589 $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 } 595 598 $content.= '<a href="'.$local_url.'">'.$keyword.'</a>'; 596 599 } 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 )); 601 606 } 602 607 // number of visits
Note: See TracChangeset
for help on using the changeset viewer.