Yaffs site version 1.1
[yaffs-website] / vendor / drush / drush / tests / bootstrap.inc
index be5b978e9e0a2bfba3809d0fcd4ee0c677cf9ede..ab7f8cc193977049d40d5ecb373a23798ee5eb5c 100644 (file)
@@ -31,6 +31,16 @@ function unish_init() {
     $unish_drupal_major = $GLOBALS['UNISH_DRUPAL_MAJOR_VERSION'];
   }
   define('UNISH_DRUPAL_MAJOR_VERSION', $unish_drupal_major);
+  $unish_drupal_minor = '';
+  if ($unish_drupal_major == 8) {
+    if (getenv('UNISH_DRUPAL_MINOR_VERSION')) {
+      $unish_drupal_minor = '.' . getenv('UNISH_DRUPAL_MINOR_VERSION');
+    }
+    elseif (isset($GLOBALS['UNISH_DRUPAL_MINOR_VERSION'])) {
+      $unish_drupal_minor = '.' . $GLOBALS['UNISH_DRUPAL_MINOR_VERSION'];
+    }
+  }
+  define('UNISH_DRUPAL_MINOR_VERSION', $unish_drupal_minor);
 
   // We read from env then globals then default to mysql.
   $unish_db_url = 'mysql://root:@127.0.0.1';