From 38e5dbf319505898c77b620d81bd9efac75c92a4 Mon Sep 17 00:00:00 2001 From: moodler Date: Sat, 26 Apr 2003 12:38:53 +0000 Subject: [PATCH] No changes, just rearranges --- mod/journal/index.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/mod/journal/index.php b/mod/journal/index.php index ed63bd8763..9504d38879 100644 --- a/mod/journal/index.php +++ b/mod/journal/index.php @@ -49,8 +49,6 @@ foreach ($journals as $journal) { - $entrytext = get_field("journal_entries", "text", "userid", $USER->id, "journal", $journal->id); - $journal->timestart = $course->startdate + (($journal->section - 1) * 608400); if (!empty($journal->daysopen)) { $journal->timefinish = $journal->timestart + (3600 * 24 * $journal->daysopen); @@ -59,12 +57,14 @@ } $journalopen = ($journal->timestart < $timenow && $timenow < $journal->timefinish); + $entrytext = get_field("journal_entries", "text", "userid", $USER->id, "journal", $journal->id); + + $text = text_to_html($entrytext)."

coursemodule\">"; - $text = text_to_html($entrytext)."

coursemodule\">"; if ($journalopen) { - $text .= "$stredit

"; + $text .= "$stredit

"; } else { - $text .= "$strview

"; + $text .= "$strview

"; } if (!empty($journal->section)) { $section = "$journal->section"; @@ -81,7 +81,7 @@ } } - echo "
"; + echo "
"; print_table($table); -- 2.39.5