summaryrefslogtreecommitdiff
path: root/authorize.php
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2009-10-24 05:13:44 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2009-10-24 05:13:44 +0000
commitcd7b8f099996c46a58b354ae262852d222306e74 (patch)
tree1e7725d67472a1c203ce418f90e2fb48716efd37 /authorize.php
parentdec6514c3b2d889c3a9fb19731e49e83d554392c (diff)
downloadbrdo-cd7b8f099996c46a58b354ae262852d222306e74.tar.gz
brdo-cd7b8f099996c46a58b354ae262852d222306e74.tar.bz2
#320331 by Dave Reid, dww, John Morahan, cwgordon7, moshe weitzman, c960657, and smoothify: Turn custom_url_rewrite_inbound() and custom_url_rewrite_outbound() into hooks.
Diffstat (limited to 'authorize.php')
-rw-r--r--authorize.php12
1 files changed, 10 insertions, 2 deletions
diff --git a/authorize.php b/authorize.php
index ffe49ef09..140c5a027 100644
--- a/authorize.php
+++ b/authorize.php
@@ -96,8 +96,16 @@ if (authorize_access_allowed()) {
// Load the code that drives the authorize process.
require_once DRUPAL_ROOT . '/includes/authorize.inc';
- // Initialize the URL path, but not via raising our bootstrap level.
- drupal_path_initialize();
+ // For the sake of Batch API and a few other low-level functions, we need to
+ // initialize the URL path into $_GET['q']. However, we do not want to raise
+ // our bootstrap level, nor do we want to call drupal_initialize_path(),
+ // since that is assuming that modules are loaded and invoking hooks.
+ // However, all we really care is if we're in the middle of a batch, in which
+ // case $_GET['q'] will already be set, we just initialize it to an empty
+ // string if it's not already defined.
+ if (!isset($_GET['q'])) {
+ $_GET['q'] = '';
+ }
if (isset($_SESSION['authorize_operation']['page_title'])) {
drupal_set_title(check_plain($_SESSION['authorize_operation']['page_title']));