string fix and empty lines

This commit is contained in:
toyomoyo 2006-02-20 03:15:38 +00:00
parent e5689267df
commit 8b034b6ddb
2 changed files with 1 additions and 3 deletions

View file

@ -1115,10 +1115,8 @@ function data_print_comment($data, $commentid) {
// Print whole message
echo format_text($comment->content);
/// Commands
/// Hack for allow to edit news posts those are not displayed yet until they are displayed
echo '<div class="commands">';
if (data_isowner($comment->recordid) or isteacher($course->id)) {
echo '<a href="'.$CFG->wwwroot.'/mod/data/comment.php?mode=edit&amp;commentid='.$comment->id.'">'.$stredit.'</a>';

View file

@ -29,7 +29,7 @@
$strrating = get_string("rating", "data");
$strname = get_string("name");
print_header("$strratings: ".format_string($post->subject));
print_header($strratings);
if (!$ratings = data_get_ratings($record->id, $sort)) {
error("No ratings for this record!");