Commit 53302b26 authored by Dries's avatar Dries
Browse files

- Patch #870922 by David_Rothstein: removing unnecessary code.

parent 7ed77852
......@@ -793,16 +793,9 @@ function update_do_one($module, $number, $dependency_map, &$context) {
return;
}
if (!isset($context['log'])) {
$context['log'] = variable_get('update_log_queries', 0);
}
$ret = array();
if (function_exists($function)) {
try {
if ($context['log']) {
Database::startLog($function);
}
$ret['results']['query'] = $function($context['sandbox']);
$ret['results']['success'] = TRUE;
}
......@@ -816,10 +809,6 @@ function update_do_one($module, $number, $dependency_map, &$context) {
$variables = _drupal_decode_exception($e);
$ret['#abort'] = array('success' => FALSE, 'query' => t('%type: %message in %function (line %line of %file).', $variables));
}
if ($context['log']) {
$ret['queries'] = Database::getLog($function);
}
}
if (isset($context['sandbox']['#finished'])) {
......
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