aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2012-06-07 22:04:19 +0000
committerplegall <plg@piwigo.org>2012-06-07 22:04:19 +0000
commitaa7bc99766e42fa8ad2c81041ae4efb9ee8a1544 (patch)
treef10598107280c0087d22690e64cfbd8075e75411
parent1808c59fd6379138f57b64a76f24df78f887562e (diff)
no longer use of images.tn_ext field any longer
git-svn-id: http://piwigo.org/svn/trunk@15598 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--admin/album_notification.php2
-rw-r--r--admin/include/photos_add_direct_process.inc.php3
-rw-r--r--admin/include/uploadify/uploadify.php3
-rw-r--r--include/functions.inc.php2
4 files changed, 4 insertions, 6 deletions
diff --git a/admin/album_notification.php b/admin/album_notification.php
index 8d4dbca1b..c456f056f 100644
--- a/admin/album_notification.php
+++ b/admin/album_notification.php
@@ -55,7 +55,7 @@ if (isset($_POST['submitEmail']) and !empty($_POST['group']))
if (!empty($category['representative_picture_id']))
{
$query = '
-SELECT id, file, path, tn_ext
+SELECT id, file, path
FROM '.IMAGES_TABLE.'
WHERE id = '.$category['representative_picture_id'].'
;';
diff --git a/admin/include/photos_add_direct_process.inc.php b/admin/include/photos_add_direct_process.inc.php
index 100b61032..dc4ae4827 100644
--- a/admin/include/photos_add_direct_process.inc.php
+++ b/admin/include/photos_add_direct_process.inc.php
@@ -194,8 +194,7 @@ if (isset($_GET['processed']))
SELECT
id,
file,
- path,
- tn_ext
+ path
FROM '.IMAGES_TABLE.'
WHERE id = '.$image_id.'
;';
diff --git a/admin/include/uploadify/uploadify.php b/admin/include/uploadify/uploadify.php
index cc30cf9e7..1e36f3268 100644
--- a/admin/include/uploadify/uploadify.php
+++ b/admin/include/uploadify/uploadify.php
@@ -65,8 +65,7 @@ array_push(
$query = '
SELECT
id,
- path,
- tn_ext
+ path
FROM '.IMAGES_TABLE.'
WHERE id = '.$image_id.'
;';
diff --git a/include/functions.inc.php b/include/functions.inc.php
index 2096eb79f..12be821e7 100644
--- a/include/functions.inc.php
+++ b/include/functions.inc.php
@@ -812,7 +812,7 @@ function get_element_path($element_info)
* have a thumbnail, the default mime image url is returned. The URL can be
* sent to the browser, but not used in the php script.
* @param array element_info assoc array containing element info from db
- * at least 'path', 'tn_ext' and 'id' should be present
+ * at least 'path' and 'id' should be present
*/
function get_thumbnail_url($element_info)
{