Ignore:
Timestamp:
Jan 3, 2012, 9:21:13 PM (12 years ago)
Author:
rvelices
Message:

feature 2548 multisize

  • rewrote local site sync + metadata sync
File:
1 edited

Legend:

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

    r12798 r12831  
    732732}
    733733
     734/** Transforms an original path to its pwg representative */
     735function 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
    734744/* Returns the PATH to the thumbnail to be displayed. If the element does not
    735745 * have a thumbnail, the default mime image path is returned. The PATH can be
Note: See TracChangeset for help on using the changeset viewer.