Commit f63199c6 authored by sun's avatar sun

#286781 by alex_b: Added function return value for demo_reset().

parent 98973be2
......@@ -6,6 +6,7 @@ Demo x.x-x.x, xxxx-xx-xx
Demo 5.x-1.x, xxxx-xx-xx
------------------------
#286781 by alex_b: Added function return value for demo_reset().
#272820 by sun: Increased maxlength for snapshot file names.
#269561 by smk-ka: Performance: Disable indices to speed up import.
#272526 by smk-ka: Added file size to snapshot list.
......
......@@ -355,14 +355,14 @@ function demo_reset($filename = 'demo_site', $verbose = TRUE) {
// Reset default dump to load on cron.
variable_set('demo_dump_cron', $demo_dump_cron);
return TRUE;
}
else {
$message = t('Unable to open dump file %filename.', array('%filename' => $fileconfig['sqlfile']));
if ($verbose) {
drupal_set_message($message, 'error');
}
watchdog('demo', $message, WATCHDOG_ERROR);
$message = t('Unable to open dump file %filename.', array('%filename' => $fileconfig['sqlfile']));
if ($verbose) {
drupal_set_message($message, 'error');
}
watchdog('demo', $message, WATCHDOG_ERROR);
return FALSE;
}
function demo_get_fileconfig($filename = 'demo_site') {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment