Changeset 9868 for trunk/admin/element_set_ranks.php
- Timestamp:
- Mar 26, 2011, 4:53:38 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/element_set_ranks.php
r9865 r9868 198 198 SELECT 199 199 id, 200 file, 200 201 path, 201 202 tn_ext, 203 name, 202 204 rank 203 205 FROM '.IMAGES_TABLE.' … … 217 219 218 220 $thumbnail_size = getimagesize($src); 221 if ( !empty( $row['name'] ) ) 222 { 223 $thumbnail_name = $row['name']; 224 } 225 else 226 { 227 $file_wo_ext = get_filename_wo_extension($row['file']); 228 $thumbnail_name = str_replace('_', ' ', $file_wo_ext); 229 } 219 230 $thumbnail_info[] = array( 231 'name' => $thumbnail_name, 220 232 'width' => $thumbnail_size[0], 221 233 'height' => $thumbnail_size[1], … … 243 255 array( 244 256 'ID' => $thumbnails_info['id'], 257 'NAME' => $thumbnails_info['name'], 245 258 'TN_SRC' => $thumbnails_info['tn_src'], 246 259 'RANK' => $thumbnails_info['rank'],
Note: See TracChangeset
for help on using the changeset viewer.