فهرست منبع

Added warning message if Drupal version is not v1.11 or v1.2. Tripal won't work without one of these versions

spficklin 13 سال پیش
والد
کامیت
422684b8d2
1فایلهای تغییر یافته به همراه11 افزوده شده و 0 حذف شده
  1. 11 0
      tripal_core/api/tripal_core.api.inc

+ 11 - 0
tripal_core/api/tripal_core.api.inc

@@ -2351,6 +2351,9 @@ function tripal_core_get_chado_version() {
   $prop_exists = db_table_exists('chadoprop');
   tripal_db_set_active($previous_db);
   if (!$prop_exists) {
+     drupal_set_message(t("WARNING: Tripal does not fully support Chado version less than v1.11.  If you are certain this is v1.11 
+       of if Chado was installed using Tripal v0.3.1b then all is well. If not please check the version and either upgrade to 
+       v1.11 or a later version"));
      return "1.11 or older";
   }
   
@@ -2369,8 +2372,16 @@ function tripal_core_get_chado_version() {
   // if we don't have a version in the chadoprop table then it must be 
   // v1.11 or older 
   if (!$v->value) {
+     drupal_set_message(t("WARNING: Tripal does not fully support Chado version less than v1.11.  If you are certain this is v1.11 
+       of if Chado was installed using Tripal v0.3.1b then all is well. If not please check the version and either upgrade to 
+       v1.11 or a later version"));
      return "1.11 or older";
   }
+  
+  if($v->value != '1.11' and $v->value != '1.2'){
+     drupal_set_message(t("WARNING: Tripal does not fully support Chado versions other than v1.11 or v1.2."));
+  
+  }
   return $v->value;
 }
 /**