Jelajahi Sumber

Issue #72: Updating API to include 2.1 improvements: bea68e1

Stephen Ficklin 7 tahun lalu
induk
melakukan
16cd3760ce
1 mengubah file dengan 3 tambahan dan 0 penghapusan
  1. 3 0
      tripal_chado/api/tripal_chado.schema.api.inc

+ 3 - 0
tripal_chado/api/tripal_chado.schema.api.inc

@@ -404,6 +404,9 @@ function chado_get_version($exact = FALSE, $warn_if_unsupported = FALSE) {
   if (preg_match('/^1\.2\d+$/', $effective_version)) {
     $effective_version = "1.2";
   }
+  else if (preg_match('/^1\.3\d+$/', $effective_version)) {
+    $effective_version = "1.3";
+  }
   if ($warn_if_unsupported and ($effective_version  < 1.11 and $effective_version != 'not installed')) {
     drupal_set_message(t("WARNING: The currently installed version of Chado, v$exact_version, is not fully compatible with Tripal."), 'warning');
   }