Changeset 17470
- Timestamp:
- Aug 7, 2012, 9:55:40 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.4/include/ws_functions.inc.php
r17016 r17470 151 151 $src_image = new SrcImage($image_row); 152 152 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 155 162 { 156 163 $ret['element_url'] = get_element_url($image_row); … … 390 397 function ws_categories_getImages($params, &$service) 391 398 { 392 @include_once(PHPWG_ROOT_PATH.'include/functions_picture.inc.php');393 399 global $user, $conf; 394 400 … … 1027 1033 function ws_images_getInfo($params, &$service) 1028 1034 { 1029 @include_once(PHPWG_ROOT_PATH.'include/functions_picture.inc.php');1030 1035 global $user, $conf; 1031 1036 $params['image_id'] = (int)$params['image_id']; … … 1253 1258 $images = array(); 1254 1259 include_once( PHPWG_ROOT_PATH .'include/functions_search.inc.php' ); 1255 include_once(PHPWG_ROOT_PATH.'include/functions_picture.inc.php');1256 1260 1257 1261 $where_clauses = ws_std_image_sql_filter( $params, 'i.' ); … … 2172 2176 function ws_tags_getImages($params, &$service) 2173 2177 { 2174 @include_once(PHPWG_ROOT_PATH.'include/functions_picture.inc.php');2175 2178 global $conf; 2176 2179
Note: See TracChangeset
for help on using the changeset viewer.