Skip to content

Commit

Permalink
replace print_date with echo date -> calls to echo print_date are rat…
Browse files Browse the repository at this point in the history
…her pointlesss.
  • Loading branch information
mantis committed May 26, 2009
1 parent 06c9675 commit 47b1f12
Show file tree
Hide file tree
Showing 12 changed files with 24 additions and 35 deletions.
6 changes: 3 additions & 3 deletions bug_update_advanced_page.php
Expand Up @@ -140,12 +140,12 @@

<!-- Date Submitted -->
<td>
<?php print_date( config_get( 'normal_date_format' ), $t_bug->date_submitted ) ?>
<?php echo date( config_get( 'normal_date_format' ), $t_bug->date_submitted ) ?>
</td>

<!-- Date Updated -->
<td>
<?php print_date( config_get( 'normal_date_format' ), $t_bug->last_updated ) ?>
<?php echo date( config_get( 'normal_date_format' ), $t_bug->last_updated ) ?>
</td>

</tr>
Expand Down Expand Up @@ -216,7 +216,7 @@
?>
</td>
<?php } else {
if ( $t_bug->due_date != $t_null_date ) print_date( config_get( 'short_date_format' ), $t_bug->due_date ); }?>
if ( $t_bug->due_date != $t_null_date ) echo date( config_get( 'short_date_format' ), $t_bug->due_date ); }?>
</td>
<?php } else { ?>
<!-- spacer -->
Expand Down
4 changes: 2 additions & 2 deletions bug_update_page.php
Expand Up @@ -142,12 +142,12 @@

<!-- Date Submitted -->
<td>
<?php print_date( config_get( 'normal_date_format' ), $t_bug->date_submitted ) ?>
<?php echo date( config_get( 'normal_date_format' ), $t_bug->date_submitted ) ?>
</td>

<!-- Date Updated -->
<td>
<?php print_date( config_get( 'normal_date_format' ), $t_bug->last_updated ) ?>
<?php echo date( config_get( 'normal_date_format' ), $t_bug->last_updated ) ?>
</td>

</tr>
Expand Down
6 changes: 3 additions & 3 deletions bug_view_advanced_page.php
Expand Up @@ -190,12 +190,12 @@

<!-- Date Submitted -->
<td>
<?php print_date( config_get( 'normal_date_format' ), $t_bug->date_submitted ) ?>
<?php echo date( config_get( 'normal_date_format' ), $t_bug->date_submitted ) ?>
</td>

<!-- Date Updated -->
<td>
<?php print_date( config_get( 'normal_date_format' ), $t_bug->last_updated ) ?>
<?php echo date( config_get( 'normal_date_format' ), $t_bug->last_updated ) ?>
</td>

</tr>
Expand Down Expand Up @@ -239,7 +239,7 @@
?>
<?php
if ( !date_is_null( $t_bug->due_date ) ) {
print_date( config_get( 'short_date_format' ), $t_bug->due_date ); }
echo date( config_get( 'short_date_format' ), $t_bug->due_date ); }
?>
</td>
<?php } else { ?>
Expand Down
4 changes: 2 additions & 2 deletions bug_view_inc.php
Expand Up @@ -89,12 +89,12 @@

<!-- Date Submitted -->
<td>
<?php print_date( config_get( 'normal_date_format' ), $t_bug->date_submitted ) ?>
<?php echo date( config_get( 'normal_date_format' ), $t_bug->date_submitted ) ?>
</td>

<!-- Date Updated -->
<td>
<?php print_date( config_get( 'normal_date_format' ), $t_bug->last_updated ) ?>
<?php echo date( config_get( 'normal_date_format' ), $t_bug->last_updated ) ?>
</td>

</tr>
Expand Down
4 changes: 2 additions & 2 deletions bug_view_page.php
Expand Up @@ -193,12 +193,12 @@

<!-- Date Submitted -->
<td>
<?php print_date( config_get( 'normal_date_format' ), $t_bug->date_submitted ) ?>
<?php echo date( config_get( 'normal_date_format' ), $t_bug->date_submitted ) ?>
</td>

<!-- Date Updated -->
<td>
<?php print_date( config_get( 'normal_date_format' ), $t_bug->last_updated ) ?>
<?php echo date( config_get( 'normal_date_format' ), $t_bug->last_updated ) ?>
</td>

</tr>
Expand Down
11 changes: 0 additions & 11 deletions core/date_api.php
Expand Up @@ -41,17 +41,6 @@ function date_get_null() {
return 1;
}

/**
* prints the date given the formating string
* @param string $p_format
* @param int $p_date
* @return null
* @access public
*/
function print_date( $p_format, $p_date ) {
echo date( $p_format, $p_date );
}

/**
*
* @param int $p_month
Expand Down
2 changes: 1 addition & 1 deletion main_page.php
Expand Up @@ -64,7 +64,7 @@

echo '<div class="quick-summary-left">';
echo lang_get( 'last_visit' ) . ': ';
echo print_date( config_get( 'normal_date_format' ), current_user_get_field( 'last_visit' ) );
echo date( config_get( 'normal_date_format' ), current_user_get_field( 'last_visit' ) );
echo '</div>';
}

Expand Down
4 changes: 2 additions & 2 deletions manage_tags_page.php
Expand Up @@ -158,8 +158,8 @@
<td><?php echo $t_tag_name ?></td>
<?php } ?>
<td><?php echo user_get_name( $t_tag_row['user_id'] ) ?></td>
<td><?php echo print_date( config_get( 'normal_date_format' ), $t_tag_row['date_created'] ) ?></td>
<td><?php echo print_date( config_get( 'normal_date_format' ), $t_tag_row['date_updated'] ) ?></td>
<td><?php echo date( config_get( 'normal_date_format' ), $t_tag_row['date_created'] ) ?></td>
<td><?php echo date( config_get( 'normal_date_format' ), $t_tag_row['date_updated'] ) ?></td>
</tr>
<?php } ?>

Expand Down
6 changes: 3 additions & 3 deletions print_all_bug_page_word.php
Expand Up @@ -198,10 +198,10 @@
<?php echo get_enum_element( 'reproducibility', $t_bug->reproducibility ) ?>
</td>
<td class="print">
<?php print_date( $t_date_format, $t_bug->date_submitted ) ?>
<?php echo date( $t_date_format, $t_bug->date_submitted ) ?>
</td>
<td class="print">
<?php print_date( $t_date_format, $t_bug->last_updated ) ?>
<?php echo date( $t_date_format, $t_bug->last_updated ) ?>
</td>
</tr>
<tr>
Expand Down Expand Up @@ -235,7 +235,7 @@
<?php
}
if ( !date_is_null( $t_bug->due_date ) ) {
print_date( $t_short_date_format, $t_bug->due_date );
echo date( $t_short_date_format, $t_bug->due_date );
print "\t\t</td>\n";
}
} else {
Expand Down
4 changes: 2 additions & 2 deletions print_bug_page.php
Expand Up @@ -126,10 +126,10 @@
<?php echo get_enum_element( 'reproducibility', $v_reproducibility ) ?>
</td>
<td class="print">
<?php print_date( config_get( 'normal_date_format' ), $v_date_submitted ) ?>
<?php echo date( config_get( 'normal_date_format' ), $v_date_submitted ) ?>
</td>
<td class="print">
<?php print_date( config_get( 'normal_date_format' ), $v_last_updated ) ?>
<?php echo date( config_get( 'normal_date_format' ), $v_last_updated ) ?>
</td>
</tr>
<tr>
Expand Down
4 changes: 2 additions & 2 deletions tag_update_page.php
Expand Up @@ -92,8 +92,8 @@
echo user_get_name($t_tag_row['user_id']);
}
?></td>
<td><?php echo print_date( config_get( 'normal_date_format' ), $t_tag_row['date_created'] ) ?> </td>
<td><?php echo print_date( config_get( 'normal_date_format' ), $t_tag_row['date_updated'] ) ?> </td>
<td><?php echo date( config_get( 'normal_date_format' ), $t_tag_row['date_created'] ) ?> </td>
<td><?php echo date( config_get( 'normal_date_format' ), $t_tag_row['date_updated'] ) ?> </td>
</tr>

<!-- spacer -->
Expand Down
4 changes: 2 additions & 2 deletions tag_view_page.php
Expand Up @@ -70,8 +70,8 @@
<td><?php echo $t_tag_row['id'] ?></td>
<td><?php echo $t_name ?></td>
<td><?php echo user_get_name($t_tag_row['user_id']) ?></td>
<td><?php echo print_date( config_get( 'normal_date_format' ), $t_tag_row['date_created'] ) ?> </td>
<td><?php echo print_date( config_get( 'normal_date_format' ), $t_tag_row['date_updated'] ) ?> </td>
<td><?php echo date( config_get( 'normal_date_format' ), $t_tag_row['date_created'] ) ?> </td>
<td><?php echo date( config_get( 'normal_date_format' ), $t_tag_row['date_updated'] ) ?> </td>
</tr>

<!-- spacer -->
Expand Down

0 comments on commit 47b1f12

Please sign in to comment.