Changeset 10756 for extensions/community/add_photos.php
- Timestamp:
- May 4, 2011, 4:06:56 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/community/add_photos.php
r9583 r10756 87 87 // reinitialize the informations to display on the result page 88 88 $page['infos'] = array(); 89 90 if (isset($conf['community_ask_for_properties']) and $conf['community_ask_for_properties']) 91 { 92 $data = array(); 93 94 $data['name'] = $_POST['name']; 95 $data['author'] = $_POST['author']; 96 97 if ($conf['allow_html_descriptions']) 98 { 99 $data['comment'] = @$_POST['description']; 100 } 101 else 102 { 103 $data['comment'] = strip_tags(@$_POST['description']); 104 } 105 106 $updates = array(); 107 foreach ($image_ids as $image_id) 108 { 109 $update = $data; 110 $update['id'] = $image_id; 111 112 array_push($updates, $update); 113 } 114 115 mass_updates( 116 IMAGES_TABLE, 117 array( 118 'primary' => array('id'), 119 'update' => array_keys($updates[0]) 120 ), 121 $updates 122 ); 123 } 89 124 90 125 // $category_id is set in the photos_add_direct_process.inc.php included script … … 300 335 ); 301 336 337 if (isset($conf['community_ask_for_properties']) and $conf['community_ask_for_properties']) 338 { 339 $template->assign( 340 array( 341 'community_ask_for_properties' => true, 342 ) 343 ); 344 } 302 345 303 346 // +-----------------------------------------------------------------------+
Note: See TracChangeset
for help on using the changeset viewer.