Changeset 17469 for trunk


Ignore:
Timestamp:
Aug 7, 2012, 9:52:37 PM (12 years ago)
Author:
rvelices
Message:

small fix on element_url returned from web service calls (now coherent with picture.php)

File:
1 edited

Legend:

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

    r17017 r17469  
    151151  $src_image = new SrcImage($image_row);
    152152
    153   global $user;
    154   if ($user['enabled_high'])
     153  if ( $src_image->is_original() )
     154  {// we have a photo
     155    global $user;
     156    if ($user['enabled_high'])
     157    {
     158      $ret['element_url'] = $src_image->get_url();
     159    }
     160  }
     161  else
    155162  {
    156163    $ret['element_url'] = get_element_url($image_row);
     
    390397function ws_categories_getImages($params, &$service)
    391398{
    392   @include_once(PHPWG_ROOT_PATH.'include/functions_picture.inc.php');
    393399  global $user, $conf;
    394400
     
    10271033function ws_images_getInfo($params, &$service)
    10281034{
    1029   @include_once(PHPWG_ROOT_PATH.'include/functions_picture.inc.php');
    10301035  global $user, $conf;
    10311036  $params['image_id'] = (int)$params['image_id'];
     
    12531258  $images = array();
    12541259  include_once( PHPWG_ROOT_PATH .'include/functions_search.inc.php' );
    1255   include_once(PHPWG_ROOT_PATH.'include/functions_picture.inc.php');
    12561260
    12571261  $where_clauses = ws_std_image_sql_filter( $params, 'i.' );
     
    21722176function ws_tags_getImages($params, &$service)
    21732177{
    2174   @include_once(PHPWG_ROOT_PATH.'include/functions_picture.inc.php');
    21752178  global $conf;
    21762179
Note: See TracChangeset for help on using the changeset viewer.