| 1 |
<?php |
<?php |
| 2 |
// $Id: multisite_manager.module,v 1.8 2008/02/08 22:11:51 schuyler1d Exp $ |
// $Id: multisite_manager.module,v 1.8.2.1 2008/03/12 17:56:40 schuyler1d Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* author: Schuyler Duveen |
* author: Schuyler Duveen |
| 480 |
case 'mysql': |
case 'mysql': |
| 481 |
return mysql_error(); |
return mysql_error(); |
| 482 |
case 'mysqli': |
case 'mysqli': |
| 483 |
return mysqli_error(db_set_active()); |
global $active_db; |
| 484 |
|
return mysqli_error($active_db); |
| 485 |
case 'pgsql': |
case 'pgsql': |
| 486 |
return pg_last_error(); |
return pg_last_error(); |
| 487 |
} |
} |
| 683 |
/// go and rename the tables of the CURRENT DATABASE |
/// go and rename the tables of the CURRENT DATABASE |
| 684 |
$mid_cur_db = _multisite_manager_dbswitch($new_db); |
$mid_cur_db = _multisite_manager_dbswitch($new_db); |
| 685 |
|
|
| 686 |
drupal_set_message(t('Renaming tables in the new database.')); |
//drupal_set_message(t('Renaming tables in the new database.')); |
| 687 |
$result = _multisite_manager_tables_result($db_prefix); |
$result = _multisite_manager_tables_result($db_prefix); |
| 688 |
|
|
| 689 |
if ($cur_db['url'] != $mid_cur_db['url']) { |
if ($cur_db['url'] != $mid_cur_db['url']) { |