Changeset 17884

Show
Ignore:
Timestamp:
10/02/08 23:05:17 (2 months ago)
Author:
flack
Message:

make this handler work with midcom > 2.6

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/midcom/org.openpsa.documents/handler/metadata.php

    r17617 r17884  
    7474        $qb = midcom_db_topic::new_query_builder(); 
    7575        $qb->add_constraint('up', '=', $topic_id); 
     76        $qb->add_constraint('component', '=', 'org.openpsa.documents'); 
    7677        $topics = $qb->execute(); 
    7778        foreach ($topics as $topic) 
    7879        { 
    79             if ($topic->parameter('midcom', 'component') == 'org.openpsa.documents') 
    80             { 
    81                 $this->_request_data['folders'][$topic->id] = "{$prefix}{$topic->extra}"; 
    82  
    83                 $this->_find_document_nodes($topic->id, "{$prefix}  "); 
    84             } 
     80            $this->_request_data['folders'][$topic->id] = "{$prefix}{$topic->extra}"; 
     81            $this->_find_document_nodes($topic->id, "{$prefix}  "); 
    8582        } 
    8683    } 
  • trunk/midcom/org.openpsa.qbpager/main.php

    r17574 r17884  
    2727 
    2828    /** 
    29      * parameter listening enabled 
     29     * Parameter listening enabled 
    3030     * 
    3131     * @access private