[svn r16710] Fix empty institution link in header (see FS#2643) (by cfasanando)

skala
Yannick Warnier 17 years ago
parent 806545288c
commit 37d7730b0f
  1. 11
      main/inc/banner.inc.php

@ -13,17 +13,14 @@
<div id="top_corner"></div> <div id="top_corner"></div>
<div id="institution"> <div id="institution">
<a href="<?php echo api_get_path(WEB_PATH);?>index.php" target="_top"><?php echo api_get_setting('siteName') ?></a> <a href="<?php echo api_get_path(WEB_PATH);?>index.php" target="_top"><?php echo api_get_setting('siteName') ?></a>
-
<?php <?php
$iurl = api_get_setting('InstitutionUrl'); $iurl = api_get_setting('InstitutionUrl');
if (empty($iurl)) $iname = api_get_setting('Institution');
if (!empty($iname))
{ {
echo api_get_setting('Institution'); echo '-&nbsp;<a href="'.$iurl.'" target="_top">'.$iname.'</a>';
}
else
{
echo '<a href="'.$iurl.'" target="_top">'.api_get_setting('Institution').'</a>';
} }
?> ?>
</div> </div>

Loading…
Cancel
Save