diff options
author | rub <rub@piwigo.org> | 2007-03-04 09:36:30 +0000 |
---|---|---|
committer | rub <rub@piwigo.org> | 2007-03-04 09:36:30 +0000 |
commit | b72f6620e664e321815433adcb3f9ed9ff771a43 (patch) | |
tree | 87c779711fbfe62c5f3236794105168ddc546893 /include/functions.inc.php | |
parent | 44f057a5f0689ad05d1ac6bf4f6f4249048ac1a2 (diff) |
Remove "TODO" on picture display showed on the caddie...
git-svn-id: http://piwigo.org/svn/trunk@1868 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'include/functions.inc.php')
-rw-r--r-- | include/functions.inc.php | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/include/functions.inc.php b/include/functions.inc.php index eb706e6ba..5990b1f68 100644 --- a/include/functions.inc.php +++ b/include/functions.inc.php @@ -819,6 +819,26 @@ function get_thumbnail_location($element_info) return $path; } +/* returns the title of the thumnail */ +function get_thumbnail_title($element_info) +{ + // message in title for the thumbnail + if (isset($element_info['file'])) + { + $thumbnail_title = $element_info['file']; + } + else + { + $thumbnail_title = ''; + } + + if (!empty($element_info['filesize'])) + { + $thumbnail_title .= ' : '.$element_info['filesize'].' KB'; + } + + return $thumbnail_title; +} // my_error returns (or send to standard output) the message concerning the // error occured for the last mysql query. |