Procházet zdrojové kódy

Fixed issue with tripal logo block

Stephen Ficklin před 7 roky
rodič
revize
a96c4a2c24

+ 3 - 1
tripal/tripal.module

@@ -681,6 +681,8 @@ function tripal_block_info() {
  * Implements hook_block_view().
  */
 function tripal_block_view($delta = ''){
+  global $base_path;
+
   // The $delta parameter tells us which block is being requested.
   switch ($delta) {
     case 'powered_by_tripal':
@@ -700,7 +702,7 @@ function tripal_block_view($delta = ''){
 
       $block['title'] = '';
       $block['content'] = array(
-        '#markup' => '<a href="http://tripal.info"><img border="0" src="' . drupal_get_path('module', 'tripal') . '/theme/images/' . $image . '"></a>',
+        '#markup' => '<a href="http://tripal.info"><img border="0" src="' . $base_path . drupal_get_path('module', 'tripal') . '/theme/images/' . $image . '"></a>',
       );
       break;
 

+ 1 - 2
tripal_chado/includes/TripalFields/data__accession/data__accession.inc

@@ -15,8 +15,7 @@ class data__accession extends ChadoField {
   public static $default_label = 'Site Accession';
 
   // The default description for this field.
-  public static $description = 'The unique stable accession (ID) for
-        this record on this site.';
+  public static $description = 'The unique stable accession (ID) for this record on this site.';
 
   // Provide a list of instance specific settings. These can be access within
   // the instanceSettingsForm.  When the instanceSettingsForm is submitted