Exemple #1
0
 function editComment()
 {
     $id = intval($_GET["commentID"]);
     system::setParam("page", "editComment");
     if (isset($_POST["body"]) && $_POST["body"]) {
         $contentID = intval($_GET["contentID"]);
         $data = array("body" => $_POST["body"]);
         news::updateComment($id, $data, $contentID);
     }
     news::buildForm("comments", "`commentID`={$id}");
 }