Prechádzať zdrojové kódy

Slightly better use of paths

E.Cannon 9 rokov pred
rodič
commit
18a4e2b46a
1 zmenil súbory, kde vykonal 7 pridanie a 4 odobranie
  1. 7 4
      theme/blast_protein_user_menupage.tpl.php

+ 7 - 4
theme/blast_protein_user_menupage.tpl.php

@@ -5,6 +5,9 @@
  *
  */
 
+//eksc- better to get this from module settings
+$nucl_blastpath = './blast/nucleotide/nucleotide';
+$prot_blastpath = './blast/nucleotide/protein';
 ?>
 
 <style>
@@ -37,23 +40,23 @@ local alignment search tool. J. Mol. Biol., 215, 403–410.</blockquote>
   <tr>
     <td rowspan="2">Nucleotide</td>
     <td>Nucleotide</td>
-    <td><?php print l('blastn', 'blast/nucleotide/nucleotide');?>:
+    <td><?php print l('blastn', $nucl_blastpath);?>:
       Search a nucleotide database using a nucleotide query.</td>
   </tr>
   <tr>
     <td>Protein</td>
-    <td><?php print l('blastx', 'blast/nucleotide/protein');?>:
+    <td><?php print l('blastx', $nucl_blastpath);?>:
       Search protein database using a translated nucleotide query.</td>
   </tr>
   <tr class="blast-highlighted">
     <td  rowspan="2">Protein</td>
     <td>Nucleotide</td>
-    <td><?php print l('tblastn', 'blast/protein/nucleotide');?>:
+    <td><?php print l('tblastn', $prot_blastpath);?>:
       Search translated nucleotide database using a protein query.</td>
   </tr>
   <tr class="blast-highlighted">
     <td>Protein</td>
-    <td><?php print l('blastp', 'blast/protein/protein');?>:
+    <td><?php print l('blastp', $prot_blastpath);?>:
       Search protein database using a protein query.</td>
   </tr>
 </table>