summaryrefslogtreecommitdiffstats
path: root/core/authorize.php
diff options
context:
space:
mode:
authorAlex Pott2014-04-16 14:18:46 (GMT)
committerAlex Pott2014-04-16 14:18:46 (GMT)
commit4a6f24817656f870ef4f1bdd29a6e2d03927ca3e (patch)
tree55373e3997da9d31620041cc71695d457ae4d27d /core/authorize.php
parent0231d3538bb09798972e19ec30cd90f845509cbd (diff)
Issue #2112557 by tim.plunkett: Convert authorize_filetransfer_form to FormInterface.
Diffstat (limited to 'core/authorize.php')
-rw-r--r--core/authorize.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/core/authorize.php b/core/authorize.php
index 108bda1..fa17ef4 100644
--- a/core/authorize.php
+++ b/core/authorize.php
@@ -79,8 +79,6 @@ if (authorize_access_allowed()) {
// Load both the Form API and Batch API.
require_once __DIR__ . '/includes/form.inc';
require_once __DIR__ . '/includes/batch.inc';
- // Load the code that drives the authorize process.
- require_once __DIR__ . '/includes/authorize.inc';
if (isset($_SESSION['authorize_page_title'])) {
$page_title = $_SESSION['authorize_page_title'];
@@ -138,7 +136,7 @@ if (authorize_access_allowed()) {
}
elseif (!$batch = batch_get()) {
// We have a batch to process, show the filetransfer form.
- $elements = \Drupal::formBuilder()->getForm('authorize_filetransfer_form');
+ $elements = \Drupal::formBuilder()->getForm('Drupal\Core\FileTransfer\Form\FileTransferAuthorizeForm');
$output = drupal_render($elements);
}
}