Changeset 20099 for extensions/UserCollections/include
- Timestamp:
- Jan 13, 2013, 12:49:45 PM (12 years ago)
- Location:
- extensions/UserCollections/include
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/UserCollections/include/UserCollection.class.php
r20093 r20099 504 504 function serialize($params) 505 505 { 506 $params = array_intersect($params, array('id','file','name','url','path' ));506 $params = array_intersect($params, array('id','file','name','url','path','date_creation','collection_add_date','filesize','width','height')); 507 507 508 508 $content = null; … … 514 514 file, 515 515 name, 516 path 516 path, 517 date_creation, 518 filesize, 519 width, 520 height, 521 add_date AS collection_add_date 517 522 FROM '.IMAGES_TABLE.' 518 WHERE id IN('.implode(',', $this->images).') 523 JOIN '.COLLECTION_IMAGES_TABLE.' ON id = image_id 524 WHERE col_id = '.$this->data['id'].' 519 525 ORDER BY id 520 526 ;'; … … 537 543 switch ($field) 538 544 { 539 case 'id':540 $element[] = $row['id']; break;541 case 'file':542 $element[] = $row['file']; break;543 545 case 'name': 544 546 $element[] = render_element_name($row); break; … … 547 549 case 'path': 548 550 $element[] = $root_url.ltrim($row['path'], './'); break; 551 default: 552 $element[] = $row[$field]; break; 549 553 } 550 554 } -
extensions/UserCollections/include/events.inc.php
r20097 r20099 126 126 { 127 127 // add links 128 $search = '#(< span class="wrap1">|<li class="gthumb">)#';128 $search = '#(<li>|<li class="gthumb">)#'; 129 129 $replace = '$1 130 130 {strip}<a class="addCollection" href="{$collection_toggle_url}{$thumbnail.id}" data-id="{$thumbnail.id}" rel="nofollow">
Note: See TracChangeset
for help on using the changeset viewer.