From 012cdce483a0447781523ba363f7bc8bab8ee7cb Mon Sep 17 00:00:00 2001
From: nicolasconnault <nicolasconnault>
Date: Fri, 23 Oct 2009 02:02:13 +0000
Subject: [PATCH] MDL-19118 Fixed a couple of XHTML errors in comment form
 definition

---
 lib/commentlib.php | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/lib/commentlib.php b/lib/commentlib.php
index 1383163c60..7aceb95889 100644
--- a/lib/commentlib.php
+++ b/lib/commentlib.php
@@ -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}">
-- 
2.39.5