Skip to content

Commit

Permalink
Fix #13272: Hardcoded table name mantis_config_table in install.php
Browse files Browse the repository at this point in the history
This issue applies only to 1.2.x, as it had already been fixed in master as
part of commit c8f355d
  • Loading branch information
dregad committed Aug 29, 2011
1 parent e6ce209 commit b4af238
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions admin/install.php
Expand Up @@ -689,7 +689,7 @@ function InsertData( $p_table, $p_data ) {
$t_target = $upgrade[$i][1];
} else if( $upgrade[$i][0] == 'UpdateFunction' ) {
$sqlarray = array(
$upgrade[$i][1],
$upgrade[$i][1],
);
if( isset( $upgrade[$i][2] ) ) {
$sqlarray[] = $upgrade[$i][2];
Expand Down Expand Up @@ -740,7 +740,7 @@ function InsertData( $p_table, $p_data ) {
}
if( $f_log_queries ) {
# add a query to set the database version
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";
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";
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>';
}
}
Expand Down

0 comments on commit b4af238

Please sign in to comment.