Index: demo.admin.inc =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/demo/demo.admin.inc,v retrieving revision 1.1.2.2 diff -u -r1.1.2.2 demo.admin.inc --- demo.admin.inc 2 Nov 2008 22:09:01 -0000 1.1.2.2 +++ demo.admin.inc 27 Nov 2008 07:07:11 -0000 @@ -349,6 +349,10 @@ if (!isset($info['version'])) { $info['version'] = '1.0'; } + + if (!isset($info['db_prefix'])) { + $info['db_prefix'] = ''; + } } if (isset($field)) { @@ -360,6 +364,7 @@ } function demo_set_info($values = null) { + global $db_prefix; if (isset($values['filename']) && is_array($values)) { // Check for valid filename if (!preg_match('/^[-_\.a-zA-Z0-9]+$/', $values['filename'])) { @@ -388,6 +393,9 @@ $infos['description'] = '"'. $values['description'] .'"'; $infos['modules'] = implode(' ', module_list()); $infos['version'] = DEMO_DUMP_VERSION; + if (isset($db_prefix) && !empty($db_prefix)) { + $infos['db_prefix'] = $db_prefix; + } // Write information to .info file $fileconfig = demo_get_fileconfig($values['filename']);