1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-17 20:58:30 +01:00

Import plugin cleanup

This commit is contained in:
Cameron 2013-03-07 04:30:25 -08:00
parent 02920b8a32
commit 82cbd71ee6
2 changed files with 3 additions and 3 deletions

View File

@ -176,7 +176,7 @@ class import_main_ui extends e_admin_ui
function importPage()
{
print_a($_POST);
// print_a($_POST);
$this->deleteExisting = varset($_POST['import_delete_existing_data'],0);

View File

@ -30,10 +30,10 @@ class base_import_class
* Connect to the external DB if not already connected
*/
function db_Connect($server, $user, $password, $database, $prefix)
{
{
if ($this->ourDB == NULL)
{
$this->ourDB = new db;
$this->ourDB = e107::getDb('ourDB');
$result = $this->ourDB->db_Connect($server, $user, $password, $database);
$this->DBPrefix = $prefix;
if ($result)