Changeset 11116


Ignore:
Timestamp:
05/30/11 23:32:10 (8 years ago)
Author:
plg
Message:

merge r11115 from branch 2.2 to trunk

feature 2244 added: web API methods pwg.categories.getImages,
pwg.tags.getImages and pwg.images.search now give the date_creation
and date_available for each returned photo.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/ws_functions.inc.php

    r10747 r11116  
    166166{ 
    167167  return array( 
    168     'id','tn_url','element_url','high_url', 'file','width','height','hit' 
     168    'id','tn_url','element_url','high_url', 'file','width','height','hit','date_available','date_creation' 
    169169    ); 
    170170} 
     
    373373        } 
    374374      } 
    375       foreach ( array('file', 'name', 'comment') as $k ) 
     375      foreach ( array('file', 'name', 'comment', 'date_creation', 'date_available') as $k ) 
    376376      { 
    377377        $image[$k] = $row[$k]; 
     
    932932        } 
    933933      } 
    934       foreach ( array('file', 'name', 'comment') as $k ) 
     934      foreach ( array('file', 'name', 'comment', 'date_creation', 'date_available') as $k ) 
    935935      { 
    936936        $image[$k] = $row[$k]; 
     
    17121712        } 
    17131713      } 
    1714       foreach ( array('file', 'name', 'comment') as $k ) 
     1714      foreach ( array('file', 'name', 'comment', 'date_creation', 'date_available') as $k ) 
    17151715      { 
    17161716        $image[$k] = $row[$k]; 
Note: See TracChangeset for help on using the changeset viewer.