@@ -31,10 +31,10 @@ |
||
| 31 | 31 | |
| 32 | 32 | //-------------------------- GETTER ----------------------------------------------------------------------------// |
| 33 | 33 | public function getRequiredConnection() { |
| 34 | - return $this->required_connection; |
|
| 34 | + return $this->required_connection; |
|
| 35 | 35 | } |
| 36 | 36 | public function getCheckComment() { |
| 37 | - return $this->check_comment; |
|
| 37 | + return $this->check_comment; |
|
| 38 | 38 | } |
| 39 | 39 | |
| 40 | 40 | /** |
@@ -2,7 +2,7 @@ discard block |
||
| 2 | 2 | <form action="<?=WEBROOT?>controller/modules/comment/write_comment" method="post" class="row"> |
| 3 | 3 | <?php if (!isset($_SESSION['idlogin'.CLEF_SITE])):?> |
| 4 | 4 | <input type="text" name="pseudo" placeholder="Your pseudo"> |
| 5 | - <?php endif;?> |
|
| 5 | + <?php endif; ?> |
|
| 6 | 6 | <textarea name="comment" id="" cols="30" rows="10"></textarea> |
| 7 | 7 | <button>Send</button> |
| 8 | 8 | |
@@ -12,4 +12,4 @@ discard block |
||
| 12 | 12 | <div class="row"> |
| 13 | 13 | <p>You must be connected to publish a comment</p> |
| 14 | 14 | </div> |
| 15 | -<?php endif;?> |
|
| 16 | 15 | \ No newline at end of file |
| 16 | +<?php endif; ?> |
|
| 17 | 17 | \ No newline at end of file |
@@ -11,8 +11,11 @@ |
||
| 11 | 11 | <input type="hidden" name="name_id_table" value="<?=$this->name_id_table?>"> |
| 12 | 12 | <input type="hidden" name="id_in_table" value="<?=$this->id_in_table?>"> |
| 13 | 13 | </form> |
| 14 | -<?php else: ?> |
|
| 14 | +<?php else { |
|
| 15 | + : ?> |
|
| 15 | 16 | <div class="row"> |
| 16 | 17 | <p>You must be connected to publish a comment</p> |
| 17 | 18 | </div> |
| 18 | -<?php endif;?> |
|
| 19 | 19 | \ No newline at end of file |
| 20 | +<?php endif; |
|
| 21 | +} |
|
| 22 | +?> |
|
| 20 | 23 | \ No newline at end of file |