Ignore:
Timestamp:
Jan 5, 2012, 11:06:21 PM (12 years ago)
Author:
rvelices
Message:

feature 2548 multisize - improved picture.php display (original...) + code cleanup

File:
1 edited

Legend:

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

    r12831 r12855  
    741741}
    742742
     743/**
     744 * @param element_info array containing element information from db;
     745 * at least 'id', 'path' should be present
     746 */
     747function get_element_path($element_info)
     748{
     749  $path = $element_info['path'];
     750  if ( !url_is_remote($path) )
     751  {
     752    $path = PHPWG_ROOT_PATH.$path;
     753  }
     754  return $path;
     755}
     756
    743757
    744758/* Returns the PATH to the thumbnail to be displayed. If the element does not
Note: See TracChangeset for help on using the changeset viewer.