remove duplication

pull/1459/head
Isaac Connor 2016-03-23 15:54:20 -04:00
parent 897a0a995c
commit dd06db0bf0
1 changed files with 1 additions and 10 deletions

View File

@ -64,18 +64,9 @@ xhtmlHeaders( __FILE__, translate('Options') );
<?php
foreach ( $tabs as $name=>$value )
{
if ( $tab == $name )
{
?>
<li class="active"><a href="?view=<?php echo $view ?>&amp;tab=<?php echo $name ?>"><?php echo $value ?></a></li>
<li<?php echo $tab == $name ? ' class="active"' : '' ?>><a href="?view=<?php echo $view ?>&amp;tab=<?php echo $name ?>"><?php echo $value ?></a></li>
<?php
}
else
{
?>
<li><a href="?view=<?php echo $view ?>&amp;tab=<?php echo $name ?>"><?php echo $value ?></a></li>
<?php
}
}
?>
</ul>