Skip to content

Commit

Permalink
Replaced all instances of old if(): else: endif; syntax with proper b…
Browse files Browse the repository at this point in the history
…races
  • Loading branch information
nicolasconnault committed Apr 13, 2007
1 parent 65c78f2 commit 20414f2
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 15 deletions.
4 changes: 2 additions & 2 deletions admin/mnet/delete.html
Expand Up @@ -14,15 +14,15 @@
<td colspan="2" class="header" cellpadding="0"><span><?php print_string('deleteaserver', 'mnet'); ?>Deleting a Server</span></td>
</tr>
<?php
if (count($warn) > 0):
if (count($warn) > 0){
?>
<tr valign="top">
<td align="right" colspan="2"><?php print_string('receivedwarnings','mnet'); ?>:<br />
<?php foreach($warn as $warning) echo $warning .'<br />'; ?>
</td>
</tr>
<?php
endif;
}
?>
<tr valign="top">
<td colspan="2"><?php print_string('reallydeleteserver','mnet'); ?>: "<?php echo $mnet_peer->name; ?>"?</td>
Expand Down
16 changes: 8 additions & 8 deletions admin/mnet/mnet_review.html
Expand Up @@ -74,7 +74,7 @@
</tr>
<?php

if(!empty($currentkey)):
if(!empty($currentkey)) {
?>
<tr>
<td align="right" valign="top"></td>
Expand All @@ -85,18 +85,18 @@
<td valign="top"><pre style="font-size: 8px;"><?php echo $currentkey;?></pre></td>
</tr>
<?php
endif;
}

if (isset($mnet_peer->id) && $mnet_peer->id > 0):
if (isset($mnet_peer->id) && $mnet_peer->id > 0) {
?>
<tr>
<td align="right" valign="top"><?php print_string('last_connect_time', 'mnet'); ?>:</td>
<td valign="top"><?php echo ($mnet_peer->last_connect_time == 0)? get_string('never','mnet') : date('H:i:s d/m/Y',$mnet_peer->last_connect_time);?></td>
</tr>
<?php
endif;
}

if (isset($mnet_peer->deleted) && $mnet_peer->deleted > 0):
if (isset($mnet_peer->deleted) && $mnet_peer->deleted > 0){
?>
<tr>
<td align="right" valign="top"><?php print_string('deleted'); ?>:</td>
Expand All @@ -106,9 +106,9 @@
</td>
</tr>
<?php
endif;
}

if (isset($mnet_peer->ip_address) && '' != $mnet_peer->ip_address):
if (isset($mnet_peer->ip_address) && '' != $mnet_peer->ip_address){
?>
<tr>
<td align="right" valign="top"><?php print_string('ipaddress', 'mnet');
Expand All @@ -119,7 +119,7 @@
</tr>

<?php
endif;
}
?>
<tr>
<td></td>
Expand Down
6 changes: 3 additions & 3 deletions admin/mnet/peers.html
Expand Up @@ -48,13 +48,13 @@
<td class="cell c1"><a href="peers.php?step=update&amp;hostid=<?php echo $host->id; ?>"><?php echo $host->wwwroot; ?></a></td>
<td class="cell c2" nowrap="nowrap"><?php if ($host->id != $CFG->mnet_all_hosts_id) echo $last_connect; ?></td>
<td class="cell c3">
<?php if ($host->id != $CFG->mnet_all_hosts_id): ?>
<?php if ($host->id != $CFG->mnet_all_hosts_id){ ?>
<form method="post" action="delete.php">
<input type="hidden" name="hostid" value="<?php echo $host->id; ?>" />
<input type="hidden" name="step" value="verify" />
<input type="submit" name="submit" value="<?php print_string('delete'); ?>"/>
</form>
<?php endif; ?>
<?php } ?>
</td>
</tr>
<?php
Expand Down Expand Up @@ -85,4 +85,4 @@
</center>
<?php
admin_externalpage_print_footer($adminroot);
?>
?>
4 changes: 2 additions & 2 deletions mod/wiki/ewiki/fragments/wiki_format.inc
Expand Up @@ -255,7 +255,7 @@ function wiki_link_regex_callback( $uu ) {
$href = trim($href);

/* create _no_ WikiLinks */
if ( false ):
if ( false ){
// interwiki links
if ( strpos($href, ":") &&
!strpos($href, "//") &&
Expand All @@ -275,7 +275,7 @@ function wiki_link_regex_callback( $uu ) {
EWIKI_SCRIPT . urlencode($href) /*.EWIKI_ADDPARAMDELIM.'edit'*/ .
' ">?</a>';
}
endif;
}

// convert normal URLs
foreach ( $ewiki_idf_url as $find ) {
Expand Down

0 comments on commit 20414f2

Please sign in to comment.