<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -8,7 +8,7 @@ $basename = isset($_SERVER['TM_FILENAME']) ? preg_replace('/\..+$/', '', $_SERVE
 function textmate_find_command($name) {
   global $version;
 
-  if (!isset($_ENV['TM_DRUPAL_VERSION']) || !isset($_ENV['TM_DRUPAL_API'])) {
+  if ((!isset($_ENV['TM_DRUPAL_VERSION']) || !isset($_ENV['TM_DRUPAL_API'])) &amp;&amp; (!isset($_SERVER['TM_DRUPAL_VERSION']) || !isset($_SERVER['TM_DRUPAL_API']))) {
     return $_SERVER['TM_BUNDLE_SUPPORT'] . &quot;/commands/misc/not_installed_properly.php&quot;;
   }
 
@@ -81,6 +81,9 @@ function textmate_detect_drupal_version() {
       array_pop($path);
     }
   }
+  if (empty($_ENV['TM_DRUPAL_VERSION'])) {
+    return $_SERVER['TM_DRUPAL_VERSION'];
+  }
   return $_ENV['TM_DRUPAL_VERSION'];
 }
 </diff>
      <filename>Review/Bundles/PHP Drupal.tmbundle/Support/bootstrap.php</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>e1b453a4e21f04fbbf4d6d746d5f12aef3d48e63</id>
    </parent>
  </parents>
  <author>
    <name>psynaptic</name>
    <email>psynaptic@dfb7d73b-c2ec-0310-8fea-fb051d288c6d</email>
  </author>
  <url>http://github.com/kballard/textmate-bundles/commit/bceb092dba5f059107e7ea489a9c086321f24c27</url>
  <id>bceb092dba5f059107e7ea489a9c086321f24c27</id>
  <committed-date>2009-11-10T09:57:04-08:00</committed-date>
  <authored-date>2009-11-10T09:57:04-08:00</authored-date>
  <message>By mikejoconnor: Check both SERVER and ENV for TM variables.

git-svn-id: http://svn.textmate.org/trunk@11809 dfb7d73b-c2ec-0310-8fea-fb051d288c6d</message>
  <tree>ac6e3c94cb11d29e95d4eecc15ee16519397cc0c</tree>
  <committer>
    <name>psynaptic</name>
    <email>psynaptic@dfb7d73b-c2ec-0310-8fea-fb051d288c6d</email>
  </committer>
</commit>
