/[drupal]/contributions/modules/multisite_manager/multisite_manager.module
ViewVC logotype

Diff of /contributions/modules/multisite_manager/multisite_manager.module

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.8.2.1, Wed Mar 12 17:56:40 2008 UTC revision 1.8.2.2, Wed Mar 12 19:08:56 2008 UTC
# Line 1  Line 1 
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
# Line 480  function _multisite_manager_db_error_mes Line 480  function _multisite_manager_db_error_mes
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    }    }
# Line 682  function multisite_manager_install_site( Line 683  function multisite_manager_install_site(
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']) {

Legend:
Removed from v.1.8.2.1  
changed lines
  Added in v.1.8.2.2

  ViewVC Help
Powered by ViewVC 1.1.2