]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-19118 Fixed a couple of XHTML errors in comment form definition
authornicolasconnault <nicolasconnault>
Fri, 23 Oct 2009 02:02:13 +0000 (02:02 +0000)
committernicolasconnault <nicolasconnault>
Fri, 23 Oct 2009 02:02:13 +0000 (02:02 +0000)
lib/commentlib.php

index 1383163c600b0746d568901bb045023ef362d0e1..7aceb9588963e0696b12904e1fbf66622434ec51 100644 (file)
@@ -313,7 +313,8 @@ EOD;
                 $html .= <<<EOD
 <div class='comment-area'>
     <div class="bd">
-        <form method="POST" id="comment-form-{$this->cid}" action="{$CFG->wwwroot}/comment/comment_post.php">
+        <form method="post" id="comment-form-{$this->cid}" action="{$CFG->wwwroot}/comment/comment_post.php">
+        <div>
         <textarea name="content" rows="1" id="dlg-content-{$this->cid}"></textarea>
         <input type="hidden" name="contextid" value="$this->contextid" />
         <input type="hidden" name="action" value="add" />
@@ -322,6 +323,7 @@ EOD;
         <input type="hidden" name="courseid" value="{$this->course->id}" />
         <input type="hidden" name="sesskey" value="{$sesskey}" />
         <input type="hidden" name="client_id" value="$this->cid" />
+        </div>
         </form>
     </div>
     <div class="fd" id="comment-action-{$this->cid}">