Changeset 14903

Show
Ignore:
Timestamp:
02/12/08 12:32:37 (10 months ago)
Author:
bergie
Message:

XML feed of approved quickpoll comments and the moderation tool for that

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/midcom/net.nemein.quickpoll/config/config.inc

    r14884 r14903  
    11// Schema database to use 
    22'schemadb' => 'file:/net/nemein/quickpoll/config/schemadb_default.inc', 
     3'schemadb_vote' => 'file:/net/nemein/quickpoll/config/schemadb_vote.inc', 
    34'schemadbs'      => Array 
    45( 
     
    1617'additional_vote_keys' => array 
    1718( 
     19    'name', 
    1820    'age', 
    1921    'city' 
  • trunk/midcom/net.nemein.quickpoll/handler/index.php

    r14884 r14903  
    378378        $tmp[] = Array 
    379379        ( 
    380             MIDCOM_NAV_URL => "{$this->_article->guid}/", 
     380            MIDCOM_NAV_URL => "{$this->_article->name}/", 
    381381            MIDCOM_NAV_NAME => $this->_article->title, 
    382382        ); 
  • trunk/midcom/net.nemein.quickpoll/handler/vote.php

    r14884 r14903  
    7575 
    7676        $this->_article = new midcom_db_article($article_id); 
    77         if (! $this->_article) 
     77        if (   !$this->_article 
     78            || !$this->_article->guid 
     79            || $this->article->topic != $this->_content_topic->id) 
    7880        { 
    7981            $_MIDCOM->generate_error(MIDCOM_ERRNOTFOUND, "The article {$args[0]} was not found."); 
  • trunk/midcom/net.nemein.quickpoll/viewer.php

    r14884 r14903  
    7878            'handler' => Array('net_nemein_quickpoll_handler_index', 'view'), 
    7979            'fixed_args' => Array('manage'), 
     80            'variable_args' => 1, 
     81        ); 
     82        // Handle /comments/<article_id> 
     83        $this->_request_switch['comments'] = array 
     84        ( 
     85            'handler' => Array('net_nemein_quickpoll_handler_votes', 'comments'), 
     86            'fixed_args' => Array('comments'), 
     87            'variable_args' => 1, 
     88        ); 
     89         
     90        // Handle /comments/xml/<article_id> 
     91        $this->_request_switch['comments_xml'] = array 
     92        ( 
     93            'handler' => Array('net_nemein_quickpoll_handler_votes', 'xml'), 
     94            'fixed_args' => Array('comments', 'xml'), 
    8095            'variable_args' => 1, 
    8196        );