소스 검색

Revert change to chado_replace_table_prefix

Abdullah Almsaeed 6 년 전
부모
커밋
61ca0a62d9
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      tripal_chado/api/tripal_chado.query.api.inc

+ 2 - 2
tripal_chado/api/tripal_chado.query.api.inc

@@ -2137,9 +2137,9 @@ function chado_db_select($table, $alias = NULL, array $options = []) {
  */
 function chado_replace_table_prefix($string) {
   $chado_schema_name = chado_get_schema_name('chado');
-  //  $drupal_schema_name = chado_get_schema_name('drupal');
+  $drupal_schema_name = chado_get_schema_name('drupal');
   $string = preg_replace('/\{(.*?)\}/', $chado_schema_name . '.$1', $string);
-  $string = preg_replace('/\[(\w+)\]/', '{$1}', $string);
+  $string = preg_replace('/\[(\w+)\]/', $drupal_schema_name . '.$1', $string);
 
   return $string;
 }