mirror of
https://github.com/Piwigo/Piwigo.git
synced 2025-04-30 05:09:57 +03:00
Using the same name for variables in ./include/mysql.inc.php
git-svn-id: http://piwigo.org/svn/trunk@141 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
parent
4de359a25f
commit
ef5df3db1f
2 changed files with 2 additions and 2 deletions
|
@ -81,7 +81,7 @@ if ( $_GET['step'] == 1 )
|
|||
$file_content.= "\n\$cfgUser = '". $_POST['cfgUser']."';";
|
||||
$file_content.= "\n\$cfgPassword = '". $_POST['cfgPassword']."';";
|
||||
$file_content.= "\n\$cfgHote = '". $_POST['cfgHote']."';";
|
||||
$file_content.= "\n\$prefix_table = '".$_POST['prefix_table']."';";
|
||||
$file_content.= "\n\$prefixeTable = '".$_POST['prefix_table']."';";
|
||||
$file_content.= "\n?>";
|
||||
// writting the configuration file
|
||||
if ( $fp = @fopen( '../include/mysql.inc.php', 'a+' ) )
|
||||
|
|
|
@ -318,7 +318,7 @@ function replace_search( $string, $search )
|
|||
function database_connection()
|
||||
{
|
||||
include( PREFIX_INCLUDE.'./include/mysql.inc.php' );
|
||||
define( PREFIX_TABLE, $prefix_table );
|
||||
define( PREFIX_TABLE, $prefixeTable );
|
||||
|
||||
@mysql_connect( $cfgHote, $cfgUser, $cfgPassword )
|
||||
or die ( "Could not connect to server" );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue