Changeset 1627 for trunk/picture.php
- Timestamp:
- Dec 2, 2006, 5:46:15 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/picture.php
r1612 r1627 458 458 ); 459 459 } 460 include(PHPWG_ROOT_PATH.'include/page_header.php');461 460 $template->set_filenames(array('picture'=>'picture.tpl')); 462 461 … … 591 590 592 591 //--------------------------------------------------------- picture information 592 $header_infos = array(); //for html header use 593 593 // legend 594 594 if (isset($picture['current']['comment']) … … 600 600 'COMMENT_IMG' => nl2br($picture['current']['comment']) 601 601 )); 602 $header_infos['COMMENT'] = strip_tags($picture['current']['comment']); 602 603 } 603 604 … … 616 617 // .'">'.$picture['current']['author'].'</a>'; 617 618 $picture['current']['author']; 619 $header_infos['INFO_AUTHOR'] = $picture['current']['author']; 618 620 } 619 621 else … … 703 705 { 704 706 $tags = array(); 707 $tag_names = array(); 705 708 706 709 while ($row = mysql_fetch_array($result)) … … 721 724 .'">'.$row['name'].'</a>' 722 725 ); 726 array_push( $tag_names, $row['name'] ); 723 727 } 724 728 725 729 $infos['INFO_TAGS'] = implode(', ', $tags); 730 $header_infos['INFO_TAGS'] = implode(', ', $tag_names); 726 731 } 727 732 else … … 774 779 pwg_log('picture', $page['title'], $picture['current']['file']); 775 780 781 include(PHPWG_ROOT_PATH.'include/page_header.php'); 776 782 $template->parse('picture'); 777 783 include(PHPWG_ROOT_PATH.'include/page_tail.php');
Note: See TracChangeset
for help on using the changeset viewer.