From d8a4c2ff06a0c456e8ceb7700827b0c15b39c7ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tam=C3=A1s=20Gul=C3=A1csi?= Date: Sat, 18 Sep 2010 10:50:51 +1000 Subject: [PATCH] Fix #12366: file_api uses old style calls to db_get_table file_api uses some old style calls to db_get_table(..), similar to: db_get_table( 'mantis_bug_file_table' ) Instead of the newer argument format: db_get_table( 'bug_file' ); Signed-off-by: David Hicks --- core/file_api.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/file_api.php b/core/file_api.php index a59e0593de..2c56893168 100644 --- a/core/file_api.php +++ b/core/file_api.php @@ -891,13 +891,13 @@ function file_get_content( $p_file_id, $p_type = 'bug' ) { $query = ''; switch ( $p_type ) { case 'bug': - $t_bug_file_table = db_get_table( 'mantis_bug_file_table' ); + $t_bug_file_table = db_get_table( 'bug_file' ); $query = "SELECT * FROM $t_bug_file_table WHERE id=" . db_param(); break; case 'doc': - $t_project_file_table = db_get_table( 'mantis_project_file_table' ); + $t_project_file_table = db_get_table( 'project_file' ); $query = "SELECT * FROM $t_project_file_table WHERE id=" . db_param();