Changeset 30

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

More generalisation for comments.

Files:

Legend:

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

    r29 r30  
    6565                     
    6666                // Generate the post URL 
    67                     $url = $CFG->wwwroot . user_info("username", $post->weblog) . "/weblog/" . $post->ident . ".html"; 
     67                    if (!isset($object->comment_type)) { 
     68                        $object->comment_type = "weblog"; 
     69                    } 
     70                    switch($object->comment_type) { 
     71                        case "weblog": 
     72                            $url = $CFG->wwwroot . user_info("username", $post->weblog) . "/". $object->comment_type ."/" . $post->ident . ".html"; 
     73                            break; 
     74                    } 
    6875                     
    6976                // Initialise Akismet