no more defined constant

This commit is contained in:
Marc Delisle
2003-12-02 15:53:35 +00:00
parent 1b60057dcb
commit 96cac13698
2 changed files with 6 additions and 1 deletions

View File

@@ -5,6 +5,11 @@ phpMyAdmin - Changelog
$Id$
$Source$
2003-12-02 Marc Delisle <lem9@users.sourceforge.net>
* libraries/display_tbl.lib.php: the constant used to check
if the transformation function is included no longer exists
* libraries/transformations/: replaced "include" by "require_once"
2003-11-28 Garvin Hicking <freakyfriday@supergarv.de>
* main.php: Fixed one remaining preg_match

View File

@@ -1241,7 +1241,7 @@ function PMA_displayTableBody(&$dt_result, &$is_display, $map, $analyzed_sql)
require_once('./libraries/transformations/' . $include_file);
if (defined('PMA_TRANSFORMATION_' . strtoupper($transformfunction_name)) && function_exists('PMA_transformation_' . $transformfunction_name)) {
if (function_exists('PMA_transformation_' . $transformfunction_name)) {
$transform_function = 'PMA_transformation_' . $transformfunction_name;
$transform_options = PMA_transformation_getOptions((isset($GLOBALS['mime_map'][$meta->name]['transformation_options']) ? $GLOBALS['mime_map'][$meta->name]['transformation_options'] : ''));
$meta->mimetype = str_replace('_', '/', $GLOBALS['mime_map'][$meta->name]['mimetype']);