]> git.mjollnir.org Git - moodle.git/commitdiff
Added word count
authormartin <martin>
Mon, 29 Jul 2002 06:20:27 +0000 (06:20 +0000)
committermartin <martin>
Mon, 29 Jul 2002 06:20:27 +0000 (06:20 +0000)
mod/journal/view.php

index b56fd9c041ac21ded703aaea54f35d6cb2d9e8d5..2fa243371a809897266ac727b54db7d92594be94 100644 (file)
@@ -85,7 +85,9 @@
         if ($timenow < $timefinish) {
             if ($entry->modified) {
                 echo "<P><FONT SIZE=-2><B>Last edited:</B> ";
-                echo userdate($entry->modified)."</FONT></P>";
+                echo userdate($entry->modified);
+                echo " (".count_words($entry->text)." words)";
+                echo "</FONT></P>";
             }
             if ($journal->days) {
                 echo "<P><FONT SIZE=-2><B>Editing period ends:</B> ";