From 4f685307b495fc740f153159d3e4c7595ab0c17c Mon Sep 17 00:00:00 2001 From: Sebastian Mendel Date: Wed, 17 Oct 2007 14:14:59 +0000 Subject: [PATCH] cleanup --- import.php | 3 +-- transformation_overview.php | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/import.php b/import.php index 32df11140..77aae0ca7 100644 --- a/import.php +++ b/import.php @@ -240,8 +240,7 @@ if ($import_file != 'none' && !$error) { $tmp_subdir = (PMA_IS_WINDOWS ? '.\\tmp\\' : './tmp/'); - // function is_writeable() is valid on PHP3 and 4 - if (is_writeable($tmp_subdir)) { + if (is_writable($tmp_subdir)) { $import_file_new = $tmp_subdir . basename($import_file); if (move_uploaded_file($import_file, $import_file_new)) { $import_file = $import_file_new; diff --git a/transformation_overview.php b/transformation_overview.php index b0b48ad39..4f16d5628 100644 --- a/transformation_overview.php +++ b/transformation_overview.php @@ -52,7 +52,7 @@ foreach ($types['mimetype'] as $key => $mimetype) { $transform) { - $func = strtolower(preg_replace('@(\.inc\.php3?)$@i', '', $types['transformation_file'][$key])); + $func = strtolower(str_ireplace('.inc.php', '', $types['transformation_file'][$key])); $desc = 'strTransformation_' . $func; ?>