unlcms / UNL-CMS

Drupal 7 implementation at the University of Nebraska–Lincoln
http://unlcms.unl.edu/
GNU General Public License v2.0
4 stars 13 forks source link

New settings.php files should only include database prefix settings, not the full database array. #873

Open tsteiner opened 10 years ago

tsteiner commented 10 years ago
$databases['default']['default']['prefix'] = array(
  'default'          => 'sXXXXXX_drupal_',
  'filter'           => 'drupal_',
  'filter_format'    => 'drupal_',
  'role'             => 'drupal_',
  'role_permission'  => 'drupal_',
  'unl_cas_settings' => 'drupal_',
  'wysiwyg'          => 'drupal_',
);

instead of

$databases = array (
  'default' =>
  array (
    'default' =>
    array (
      'driver' => 'mysql',
      'database' => 'database',
      'username' => 'username',
      'password' => 'password',
      'host' => 'hostname',
      'port' => '',
      'prefix' =>
      array (
        'default' => 'sXXXXXX_drupal_',
        'filter' => 'drupal_',
        'filter_format' => 'drupal_',
        'role' => 'drupal_',
        'role_permission' => 'drupal_',
        'unl_cas_settings' => 'drupal_',
        'wysiwyg' => 'drupal_',
      ),
    ),
  ),
);