Skip to content
Snippets Groups Projects
Commit b1abfb75 authored by Adrian Cid Almaguer's avatar Adrian Cid Almaguer
Browse files

Issue #3340627 by adriancid: Variable $context is undefined

parent 86bcb8c1
No related branches found
No related tags found
No related merge requests found
......@@ -449,7 +449,11 @@ class NodeRevisionDeleteCommands extends DrushCommands {
// Get all revisions of the current node, in all languages.
$revision_ids = $node_storage->revisionIds($node);
if (!in_array($vid, $revision_ids)) {
$this->io()->error(dt("@vid is not a valid revision id for node @nid.", ['@vid' => $vid, '@nid' => $nid]));
$variables = [
'@vid' => $vid,
'@nid' => $nid,
];
$this->io()->error(dt("@vid is not a valid revision id for node @nid.", $variables));
return FALSE;
}
......
......@@ -88,7 +88,7 @@ class NodeRevisionDeleteBatch {
if ($success) {
// If we are finishing the prior delete feature.
if (isset($context['results']['node'])) {
if (isset($results['node'])) {
$variables = [
'@total' => $results['revisions'],
'@type' => $results['node']->type->entity->label(),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment