diff --git a/core/authorize.php b/core/authorize.php index c9e0cbe..f47ae3f 100644 --- a/core/authorize.php +++ b/core/authorize.php @@ -71,7 +71,6 @@ function authorize_access_allowed() { // variables, however, so we have access to the class autoloader. drupal_bootstrap(DRUPAL_BOOTSTRAP_VARIABLES); -// A request object from the HTTPFoundation to tell us about the request. $request = Request::createFromGlobals(); Drupal::getContainer()->set('request', $request); @@ -140,7 +139,7 @@ function authorize_access_allowed() { $output .= theme('item_list', array('items' => $links, 'title' => t('Next steps'))); } // If a batch is running, let it run. - elseif (isset($_GET['batch'])) { + elseif ($request->query->has('batch')) { $output = _batch_page($request); } else {