Mercurial > defr > DualBlog
comparison comment.php @ 72:217f56e6bc77
Si on arrive pas à vérifier le commentaire via Akismet, on l'affichera
Le comportement précédent n'était pas réellement défini pour le cas ou
l'authentification auprès d'Akismet ne se fait pas correctement, c'est
maintenant réparé.
author | Franck Deroche <webmaster@defr.org> |
---|---|
date | Thu, 20 Mar 2008 19:47:11 +0100 |
parents | 464f4b94ee27 |
children | e43b756548b4 |
comparison
equal
deleted
inserted
replaced
71:464f4b94ee27 | 72:217f56e6bc77 |
---|---|
32 'permalink' => 'http://defr.org/blog/posts/' . $id | 32 'permalink' => 'http://defr.org/blog/posts/' . $id |
33 ); | 33 ); |
34 $ak = new akismet('http://defr.org/blog', AKISMET_API_KEY, $comment); | 34 $ak = new akismet('http://defr.org/blog', AKISMET_API_KEY, $comment); |
35 if(!$ak->errorsExist()) | 35 if(!$ak->errorsExist()) |
36 $visibleBool = !$ak->isSpam(); | 36 $visibleBool = !$ak->isSpam(); |
37 else | |
38 $visibleBool = true; | |
37 | 39 |
38 // Suppression d'un gros lourd | 40 // Suppression d'un gros lourd |
39 $visibleBool &= (ereg('^ma[0-9]+zda$', $Auteur) === false); | 41 $visibleBool &= (ereg('^ma[0-9]+zda$', $Auteur) === false); |
40 $visible = $visibleBool ? 1 : 0; | 42 $visible = $visibleBool ? 1 : 0; |
41 | 43 |