Commit 234c1a79 authored by mikeytown2's avatar mikeytown2

#1068646: make sure path functions are available in hook_exit before using them.

parent 8a19d90b
......@@ -670,6 +670,8 @@ function boost_exit($destination = NULL) {
// Check for redirects
if (!empty($destination) && $_SERVER['REQUEST_METHOD'] != 'POST' && empty($_GET['destination'])) {
// Make sure path functions are available.
drupal_bootstrap(DRUPAL_BOOTSTRAP_PATH);
boost_redirect_handler($destination);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment