Skip to content

Commit

Permalink
Fix #12366: file_api uses old style calls to db_get_table
Browse files Browse the repository at this point in the history
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 <hickseydr@optusnet.com.au>
  • Loading branch information
Tamás Gulácsi authored and davidhicks committed Sep 18, 2010
1 parent 3e17066 commit d8a4c2f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/file_api.php
Expand Up @@ -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();
Expand Down

0 comments on commit d8a4c2f

Please sign in to comment.