Changeset 18945 for extensions/rv_akismet/check.inc.php
- Timestamp:
- Nov 6, 2012, 7:58:42 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/rv_akismet/check.inc.php
r16004 r18945 18 18 'author' => $comment['author'], 19 19 'body' => $comment['content'], 20 'comment_author_url' => $comment['website_url'], 21 'comment_author_email' => $comment['email'], 20 22 'permalink' => $url, 21 23 'referrer' => isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : '', 22 24 ); 23 if (isset($_POST['url']) && strlen($_POST['url']))24 $aki_comm['comment_author_url'] = $_POST['url']; 25 /*if (isset($_POST['url']) && strlen($_POST['url'])) 26 $aki_comm['comment_author_url'] = $_POST['url'];*/ 25 27 26 28 $akismet = new Akismet(get_absolute_root_url(), $conf['akismet_api_key'], $aki_comm); … … 41 43 { 42 44 $_POST['cr'][] = 'aki-ok'; 43 if (!isset($_SESSION['csi']) && isset($_POST['url']) && strlen($_POST['url']))45 if (!isset($_SESSION['csi']) /*&& isset($_POST['url']) && strlen($_POST['url']) */) 44 46 { 45 $action = ' reject';46 $_POST['cr'][] = 'csi url';47 $action = 'moderate'; 48 $_POST['cr'][] = 'csi'; 47 49 } 48 50 }
Note: See TracChangeset
for help on using the changeset viewer.