Changeset 11115


Ignore:
Timestamp:
May 30, 2011, 11:30:56 PM (10 years ago)
Author:
plg
Message:

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
  • branches/2.2/include/ws_functions.inc.php

    r10130 r11115  
    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];
     
    17091709        }
    17101710      }
    1711       foreach ( array('file', 'name', 'comment') as $k )
     1711      foreach ( array('file', 'name', 'comment', 'date_creation', 'date_available') as $k )
    17121712      {
    17131713        $image[$k] = $row[$k];
Note: See TracChangeset for help on using the changeset viewer.