From: moodler
Date: Sat, 26 Apr 2003 12:38:53 +0000 (+0000)
Subject: No changes, just rearranges
X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=38e5dbf319505898c77b620d81bd9efac75c92a4;p=moodle.git
No changes, just rearranges
---
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);