From f897ba70b6e375b4861d288221a665458d47e920 Mon Sep 17 00:00:00 2001
From: Tim Steiner <tsteiner2@unl.edu>
Date: Fri, 15 Oct 2010 17:05:20 +0000
Subject: [PATCH] Add a call to unl_bootstrap to update.php and update
 .htaccess.sample

git-svn-id: file:///tmp/wdn_thm_drupal/trunk@244 20a16fea-79d4-4915-8869-1ea9d5ebf173
---
 .htaccess.sample | 2 ++
 update.php       | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/.htaccess.sample b/.htaccess.sample
index f8135d45..21a953ed 100644
--- a/.htaccess.sample
+++ b/.htaccess.sample
@@ -65,6 +65,8 @@ DirectoryIndex index.php index.html index.htm
   # THIS SECTION IS AUTOMATICALY GENERATED.
   # DO NOT EDIT!!!!
   
+  RewriteRule .*/update.php update.php
+  
   # %UNL_CREATION_TOOL_STUB%
   
   # END AUTOMATICALLY GENERATED AREA.
diff --git a/update.php b/update.php
index 8a0adfc2..588865f5 100644
--- a/update.php
+++ b/update.php
@@ -330,12 +330,14 @@ ini_set('display_errors', FALSE);
 
 // We prepare a minimal bootstrap for the update requirements check to avoid
 // reaching the PHP memory limit.
+require_once DRUPAL_ROOT . '/includes/unl_bootstrap.inc';
 require_once DRUPAL_ROOT . '/includes/bootstrap.inc';
 require_once DRUPAL_ROOT . '/includes/update.inc';
 require_once DRUPAL_ROOT . '/includes/common.inc';
 require_once DRUPAL_ROOT . '/includes/file.inc';
 require_once DRUPAL_ROOT . '/includes/entity.inc';
 require_once DRUPAL_ROOT . '/includes/unicode.inc';
+unl_bootstrap();
 update_prepare_d7_bootstrap();
 
 // Determine if the current user has access to run update.php.
-- 
GitLab