diff options
author | Chanaka Indrajith <pe.chanaka.ck@gmail.com> | 2012-09-16 13:05:45 +0400 |
---|---|---|
committer | Chanaka Indrajith <pe.chanaka.ck@gmail.com> | 2012-09-16 13:05:45 +0400 |
commit | e6894be57f5735ab525a2f758ad842aacb8ef7bc (patch) | |
tree | a94e853e44998476b7a055380469c61d57037f80 /import.php | |
parent | 0829709064b8ec1170d63d6d9a5828a0a89b34af (diff) |
Renamed ->method() with PMA_Util::method()
Diffstat (limited to 'import.php')
-rw-r--r-- | import.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/import.php b/import.php index c426801c83..f84268b68c 100644 --- a/import.php +++ b/import.php @@ -121,7 +121,7 @@ foreach (array_keys($_POST) as $post_key) { } // Check needed parameters -$common_functions->checkParameters(array('import_type', 'format')); +PMA_Util::checkParameters(array('import_type', 'format')); // We don't want anything special in format $format = PMA_securePath($format); @@ -215,7 +215,7 @@ if (! empty($id_bookmark)) { if (isset($bookmark_variable) && ! empty($bookmark_variable)) { $import_text = preg_replace( '|/\*(.*)\[VARIABLE\](.*)\*/|imsU', - '${1}' . $common_functions->sqlAddSlashes($bookmark_variable) . '${2}', + '${1}' . PMA_Util::sqlAddSlashes($bookmark_variable) . '${2}', $import_text ); } @@ -299,7 +299,7 @@ if (! empty($local_import_file) && ! empty($cfg['UploadDir'])) { // sanitize $local_import_file as it comes from a POST $local_import_file = PMA_securePath($local_import_file); - $import_file = $common_functions->userDir($cfg['UploadDir']) + $import_file = PMA_Util::userDir($cfg['UploadDir']) . $local_import_file; } elseif (empty($import_file) || ! is_uploaded_file($import_file)) { @@ -550,7 +550,7 @@ if (strlen($sql_query) <= $GLOBALS['cfg']['MaxCharactersInDisplayedSQL']) { // There was an error? if (isset($my_die)) { foreach ($my_die AS $key => $die) { - $common_functions->mysqlDie( + PMA_Util::mysqlDie( $die['error'], $die['sql'], '', $err_url, $error ); } |