Changeset 31

Show
Ignore:
Timestamp:
12/18/06 19:42:56 (2 years ago)
Author:
ben
Message:

Akismet plugin cleanup. This plugin is now tested and working.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • akismet/lib.php

    r30 r31  
    1818     
    1919    // Menu items 
    20         function akismet_pagesetup() { 
    21              
     20        function akismet_pagesetup() {             
    2221            // TODO: add a menu item to flagged comments 
    23              
    2422        } 
    2523         
     
    4846             
    4947                listen_for_event("comment","create","akismet_vet"); 
     48                listen_for_event("weblog_comment","create","akismet_vet"); 
    5049             
    5150        } 
     
    5655            global $CFG, $messages; 
    5756             
    58             if ($object_type == "comment" && !empty($CFG->akismet->apikey) && !empty($CFG->akismet->blogurl)) { 
     57            if (($object_type == "comment" || $object_type == "weblog_comment") && !empty($CFG->akismet->apikey) && !empty($CFG->akismet->blogurl)) { 
    5958             
    6059                // Load Akismet class