Changeset 12000

Show
Ignore:
Timestamp:
09/04/07 15:35:03 (1 year ago)
Author:
bergie
Message:

Refuse to handle RSS feed fetching for unknown components

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/midcom/net.nemein.rss/fetch.php

    r11988 r12000  
    163163                return $this->import_article($item); 
    164164                break; 
     165                 
     166            default: 
     167                $_MIDCOM->generate_error(MIDCOM_ERRCRIT, "RSS fetching for component {$this->_node->component} is unsupported"); 
     168                // This will exit. 
    165169        } 
    166170    } 
     
    306310         
    307311        // Try to figure out item publication date 
    308         //$article_date = $this->parse_item_date($item); 
    309312        $article_date = null; 
    310313        if (isset($item['date_timestamp'])) 
     
    337340            if (!$updated) 
    338341            { 
     342                // No data changed, avoid unnecessary I/O 
    339343                return $article->guid; 
    340344            }