Skip to content
This repository has been archived by the owner on Apr 12, 2023. It is now read-only.

Commit

Permalink
Converter didn\'t work if TBG used a different database prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeremy D committed Nov 8, 2011
1 parent 714f3de commit 15eb7ab
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions converter.php
Expand Up @@ -334,9 +334,11 @@ public function setPasswd($db_pass)

/**
* Set the prefix that will be used prior to every reference of a table
* @param string $prefix = The database prefix.
*/
public function setTablePrefix()
public function setTablePrefix($prefix)
{
$this->tbg_db_table_prefix = $prefix;
$this->tbg_db_prefix = $this->tbg_db_name . '.' . $this->tbg_db_table_prefix;

return true;
Expand Down Expand Up @@ -373,9 +375,6 @@ function getDatabaseConnection()
exit('TBG Connection failed: ' . $e->getMessage() . "\n");
}

// Set the prefixes.
$this->setTablePrefix();

return true;
}

Expand Down

0 comments on commit 15eb7ab

Please sign in to comment.