From 707cbde7fd700e13351a3848752aa12004916dcb Mon Sep 17 00:00:00 2001
From: webchick <webchick@24967.no-reply.drupal.org>
Date: Wed, 28 Nov 2012 22:34:54 -0800
Subject: [PATCH] Issue #1843410 by ACF: Change variable batch_test_stack() to
 the state system.

---
 .../system/tests/modules/batch_test/batch_test.module     | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/core/modules/system/tests/modules/batch_test/batch_test.module b/core/modules/system/tests/modules/batch_test/batch_test.module
index 9852a1261daf..a5f299577e31 100644
--- a/core/modules/system/tests/modules/batch_test/batch_test.module
+++ b/core/modules/system/tests/modules/batch_test/batch_test.module
@@ -527,12 +527,12 @@ function _batch_test_theme_callback() {
  */
 function batch_test_stack($data = NULL, $reset = FALSE) {
   if ($reset) {
-    variable_del('batch_test_stack');
+    state()->delete('batch_test.stack');
   }
   if (!isset($data)) {
-    return variable_get('batch_test_stack', array());
+    return state()->get('batch_test.stack');
   }
-  $stack = variable_get('batch_test_stack', array());
+  $stack = state()->get('batch_test.stack');
   $stack[] = $data;
-  variable_set('batch_test_stack', $stack);
+  state()->set('batch_test.stack', $stack);
 }
-- 
GitLab