Changeset 11701
- Timestamp:
- 08/23/07 17:08:26 (1 year ago)
- Files:
-
- branches/MidCOM_2_8/net.nemein.wiki/handler/feed.php (modified) (1 diff)
- branches/MidCOM_2_8/net.nemein.wiki/wikipage.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/MidCOM_2_8/net.nemein.wiki/handler/feed.php
r11130 r11701 42 42 { 43 43 $qb = net_nemein_wiki_wikipage::new_query_builder(); 44 //$qb->add_constraint('topic.component', '=', 'net.nemein.wiki');45 $qb->add_constraint('topic ', 'INTREE', $this->_topic->id);44 $qb->add_constraint('topic.component', '=', $_MIDCOM->get_context_data(MIDCOM_CONTEXT_COMPONENT)); 45 $qb->add_constraint('topic.id', 'INTREE', $this->_topic->id); 46 46 $qb->add_order('metadata.revised', 'DESC'); 47 47 $qb->set_limit($this->_config->get('rss_count')); 48 $result = $qb->execute(); 48 $result = $qb->execute(); 49 49 50 50 foreach ($result as $wikipage) branches/MidCOM_2_8/net.nemein.wiki/wikipage.php
r11130 r11701 414 414 415 415 /** 416 * Links to other wiki pages tagged with arbit ary tags416 * Links to other wiki pages tagged with arbitrary tags 417 417 */ 418 418 function _replace_wikiwords_macro_tagged($macro_content, $fulltag, $after) … … 550 550 $folder = $wikipage_match['latest_parent']; 551 551 } 552 553 if ($folder[MIDCOM_NAV_OBJECT]->can_do('midgard:create')) 552 553 if ( isset($folder[MIDCOM_NAV_OBJECT]) 554 && $folder[MIDCOM_NAV_OBJECT]->can_do('midgard:create')) 554 555 { 555 556 $wikilink = rawurlencode($wikilink); … … 713 714 // Traverse the NAP tree upwards until we get the root-most wiki folder 714 715 $folder = $nap->get_node($this->topic); 716 715 717 $root_folder = $folder; 716 718 $max = 100; … … 807 809 } 808 810 811 if (empty($folder)) 812 { 813 return null; 814 } 815 809 816 // Check if the wikipage exists 810 817 $qb = net_nemein_wiki_wikipage::new_query_builder();
