Changeset 12101

Show
Ignore:
Timestamp:
09/10/07 13:10:00 (1 year ago)
Author:
bergie
Message:

Use correct component params for topic creation, refs #123

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/midcom/org.openpsa.projects/handler/project/action.php

    r4794 r12101  
    152152                $news_topic->up = $this->_request_data['project_topic']->id; 
    153153                $news_topic->extra = sprintf($this->_request_data['l10n']->get("%s news area"), $this->_request_data['project']->title); 
     154                $news_topic->component = 'net.nehmer.blog'; 
    154155                $news_topic->name = midcom_generate_urlname_from_string($news_topic->extra); 
    155156                $news_topic->create(); 
     
    159160                    // Set the topic to use correct component 
    160161                    $news_topic = new midcom_baseclasses_database_topic($news_topic->id); 
    161                     $news_topic->parameter('midcom', 'component', 'de.linkm.newsticker'); 
    162162 
    163163                    // Fix the ACLs for the topic 
     
    202202                $forum_topic->up = $this->_request_data['project_topic']->id; 
    203203                $forum_topic->extra = sprintf($this->_request_data['l10n']->get("%s discussion"), $this->_request_data['project']->title); 
     204                $forum_topic->component = 'net.nemein.discussion'; 
    204205                $forum_topic->name = midcom_generate_urlname_from_string($forum_topic->extra); 
    205206                $forum_topic->create(); 
     
    209210                    // Set the topic to use correct component 
    210211                    $forum_topic = new midcom_baseclasses_database_topic($forum_topic->id); 
    211                     $forum_topic->parameter('midcom', 'component', 'net.nemein.discussion'); 
    212212 
    213213                    // Fix the ACLs for the topic