diff options
author | Dries Buytaert <dries@buytaert.net> | 2010-10-02 02:52:21 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2010-10-02 02:52:21 +0000 |
commit | 53302b2654eccbf0d6a6f75e7c92d17e907c440e (patch) | |
tree | 5ff2e85fbeff25966b4463d5e6d313106875652b | |
parent | 7ed77852bdaa9519d30132a854a47de5ad212c80 (diff) | |
download | brdo-53302b2654eccbf0d6a6f75e7c92d17e907c440e.tar.gz brdo-53302b2654eccbf0d6a6f75e7c92d17e907c440e.tar.bz2 |
- Patch #870922 by David_Rothstein: removing unnecessary code.
-rw-r--r-- | includes/update.inc | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/includes/update.inc b/includes/update.inc index 51504a811..60eadfbc2 100644 --- a/includes/update.inc +++ b/includes/update.inc @@ -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'])) { |