Sfoglia il codice sorgente

Fixed bug in setting path for uploaded files

Stephen Ficklin 6 anni fa
parent
commit
29babe7169
1 ha cambiato i file con 3 aggiunte e 3 eliminazioni
  1. 3 3
      tripal/includes/TripalImporter.inc

+ 3 - 3
tripal/includes/TripalImporter.inc

@@ -302,7 +302,7 @@ class TripalImporter {
           foreach ($fids as $fid) {
             $file = file_load($fid);
             $arguments['files'][] = array(
-              'file_path' => base_path() . drupal_realpath($file->uri),
+              'file_path' => drupal_realpath($file->uri),
               'fid' => $fid
             );
             $has_file++;
@@ -313,14 +313,14 @@ class TripalImporter {
           $fid = $file_details['fid'];
           $file = file_load($fid);
           $arguments['files'][] = array(
-            'file_path' => base_path() . drupal_realpath($file->uri),
+            'file_path' => drupal_realpath($file->uri),
             'fid' => $fid
           );
           $has_file++;
 
           // For backwards compatibility add the old 'file' element.
           $arguments['file'] = array(
-            'file_path' => base_path() . drupal_realpath($file->uri),
+            'file_path' => drupal_realpath($file->uri),
             'fid' => $fid
           );
         }