add page_url (canonical picture url) for web service methods images.search, tags.getImages, images.getInfo, categories.getImages

git-svn-id: http://piwigo.org/svn/trunk@18732 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
rvelices
2012-10-24 20:24:44 +00:00
parent d911377937
commit 9f24af98f2
2 changed files with 9 additions and 4 deletions
+7 -1
View File
@@ -148,6 +148,12 @@ function ws_std_get_urls($image_row)
{
$ret = array();
$ret['page_url'] = make_picture_url( array(
'image_id' => $image_row['id'],
'image_file' => $image_row['file'],
)
);
$src_image = new SrcImage($image_row);
if ( $src_image->is_original() )
@@ -182,7 +188,7 @@ function ws_std_get_urls($image_row)
function ws_std_get_image_xml_attributes()
{
return array(
'id','element_url', 'file','width','height','hit','date_available','date_creation'
'id','element_url', 'page_url', 'file','width','height','hit','date_available','date_creation'
);
}
+2 -3
View File
@@ -150,8 +150,7 @@
<h3>Description</h3>
<blockquote>
</blockquote>
<hr>
<br>
</div> <!-- methodDescription -->
<div id="methodParams">
@@ -211,7 +210,7 @@
</blockquote>
</div> <!-- testForm -->
<hr>
<br><br>
<h3>Result</h3>
<div id="iframeWrapper">