Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit b4af238

Browse files
committedAug 29, 2011
Fix #13272: Hardcoded table name mantis_config_table in install.php
This issue applies only to 1.2.x, as it had already been fixed in master as part of commit c8f355d
1 parent e6ce209 commit b4af238

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎admin/install.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -689,7 +689,7 @@ function InsertData( $p_table, $p_data ) {
689689
$t_target = $upgrade[$i][1];
690690
} else if( $upgrade[$i][0] == 'UpdateFunction' ) {
691691
$sqlarray = array(
692-
$upgrade[$i][1],
692+
$upgrade[$i][1],
693693
);
694694
if( isset( $upgrade[$i][2] ) ) {
695695
$sqlarray[] = $upgrade[$i][2];
@@ -740,7 +740,7 @@ function InsertData( $p_table, $p_data ) {
740740
}
741741
if( $f_log_queries ) {
742742
# add a query to set the database version
743-
echo 'INSERT INTO mantis_config_table ( value, type, access_reqd, config_id, project_id, user_id ) VALUES (\'' . $lastid . '\', 1, 90, \'database_version\', 0, 0 );' . "\r\n";
743+
echo 'INSERT INTO ' . db_get_table( 'mantis_config_table' ) . ' ( value, type, access_reqd, config_id, project_id, user_id ) VALUES (\'' . $lastid . '\', 1, 90, \'database_version\', 0, 0 );' . "\r\n";
744744
echo '</pre></br /><p style="color:red">Your database has not been created yet. Please create the database, then install the tables and data using the information above before proceeding.</td></tr>';
745745
}
746746
}

0 commit comments

Comments
 (0)
Please sign in to comment.