mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-06 08:43:31 +02:00
feature 2548 multisize - improved picture.php display (original...) + code cleanup
git-svn-id: http://piwigo.org/svn/trunk@12855 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -740,6 +740,20 @@ function original_to_representative($path, $representative_ext)
|
||||
return substr_replace($path, $representative_ext, $pos+1);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param element_info array containing element information from db;
|
||||
* at least 'id', 'path' should be present
|
||||
*/
|
||||
function get_element_path($element_info)
|
||||
{
|
||||
$path = $element_info['path'];
|
||||
if ( !url_is_remote($path) )
|
||||
{
|
||||
$path = PHPWG_ROOT_PATH.$path;
|
||||
}
|
||||
return $path;
|
||||
}
|
||||
|
||||
|
||||
/* Returns the PATH to the thumbnail to be displayed. If the element does not
|
||||
* have a thumbnail, the default mime image path is returned. The PATH can be
|
||||
|
||||
Reference in New Issue
Block a user