From 00b29da491d774aa430fdac96a194cfe3705363c Mon Sep 17 00:00:00 2001 From: plegall Date: Mon, 30 May 2011 21:30:56 +0000 Subject: 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. git-svn-id: http://piwigo.org/svn/branches/2.2@11115 68402e56-0260-453c-a942-63ccdbb3a9ee --- include/ws_functions.inc.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'include/ws_functions.inc.php') diff --git a/include/ws_functions.inc.php b/include/ws_functions.inc.php index a0982becb..ef592b3a4 100644 --- a/include/ws_functions.inc.php +++ b/include/ws_functions.inc.php @@ -165,7 +165,7 @@ function ws_std_get_urls($image_row) function ws_std_get_image_xml_attributes() { return array( - 'id','tn_url','element_url','high_url', 'file','width','height','hit' + 'id','tn_url','element_url','high_url', 'file','width','height','hit','date_available','date_creation' ); } @@ -372,7 +372,7 @@ LIMIT '.(int)$params['per_page'].' OFFSET '.(int)($params['per_page']*$params['p $image[$k] = (int)$row[$k]; } } - foreach ( array('file', 'name', 'comment') as $k ) + foreach ( array('file', 'name', 'comment', 'date_creation', 'date_available') as $k ) { $image[$k] = $row[$k]; } @@ -931,7 +931,7 @@ SELECT * FROM '.IMAGES_TABLE.' $image[$k] = (int)$row[$k]; } } - foreach ( array('file', 'name', 'comment') as $k ) + foreach ( array('file', 'name', 'comment', 'date_creation', 'date_available') as $k ) { $image[$k] = $row[$k]; } @@ -1708,7 +1708,7 @@ SELECT * FROM '.IMAGES_TABLE.' $image[$k] = (int)$row[$k]; } } - foreach ( array('file', 'name', 'comment') as $k ) + foreach ( array('file', 'name', 'comment', 'date_creation', 'date_available') as $k ) { $image[$k] = $row[$k]; } -- cgit v1.2.3