Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
53302b26
Commit
53302b26
authored
Oct 02, 2010
by
Dries
Browse files
- Patch
#870922
by David_Rothstein: removing unnecessary code.
parent
7ed77852
Changes
1
Hide whitespace changes
Inline
Side-by-side
includes/update.inc
View file @
53302b26
...
...
@@ -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'
]))
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment