@@ -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 |
@@ -10,8 +10,11 @@ |
||
10 | 10 | <input type="hidden" name="table" value="<?=$this->table?>"> |
11 | 11 | <input type="hidden" name="id_in_table" value="<?=$this->id_in_table?>"> |
12 | 12 | </form> |
13 | -<?php else: ?> |
|
13 | +<?php else { |
|
14 | + : ?> |
|
14 | 15 | <div class="row"> |
15 | 16 | <p>You must be connected to publish a comment</p> |
16 | 17 | </div> |
17 | -<?php endif;?> |
|
18 | 18 | \ No newline at end of file |
19 | +<?php endif; |
|
20 | +} |
|
21 | +?> |
|
19 | 22 | \ No newline at end of file |