From 9a98523a8060882334f052aa2084826c21ef8db0 Mon Sep 17 00:00:00 2001
From: Angie Byron <webchick@24967.no-reply.drupal.org>
Date: Tue, 28 Dec 2010 19:14:48 +0000
Subject: [PATCH] #761212 by jbrown: Fixed Always use DRUPAL_ROOT instead of
 getcwd()

---
 includes/bootstrap.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/includes/bootstrap.inc b/includes/bootstrap.inc
index be0a471eb4a8..8fe5beae5d15 100644
--- a/includes/bootstrap.inc
+++ b/includes/bootstrap.inc
@@ -3057,7 +3057,7 @@ function &drupal_register_shutdown_function($callback = NULL) {
     $args = func_get_args();
     array_shift($args);
     // Save callback and arguments
-    $callbacks[] = array('callback' => $callback, 'arguments' => $args, 'cwd' => getcwd());
+    $callbacks[] = array('callback' => $callback, 'arguments' => $args, 'cwd' => DRUPAL_ROOT);
   }
   return $callbacks;
 }
-- 
GitLab