Changeset 12831 for trunk/include/functions.inc.php
- Timestamp:
- Jan 3, 2012, 9:21:13 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/functions.inc.php
r12798 r12831 732 732 } 733 733 734 /** Transforms an original path to its pwg representative */ 735 function original_to_representative($path, $representative_ext) 736 { 737 $pos = strrpos($path, '/'); 738 $path = substr_replace($path, 'pwg_representative/', $pos+1, 0); 739 $pos = strrpos($path, '.'); 740 return substr_replace($path, $representative_ext, $pos+1); 741 } 742 743 734 744 /* Returns the PATH to the thumbnail to be displayed. If the element does not 735 745 * have a thumbnail, the default mime image path is returned. The PATH can be
Note: See TracChangeset
for help on using the changeset viewer.