Changeset 11983

Show
Ignore:
Timestamp:
09/04/07 11:48:55 (1 year ago)
Author:
w_i
Message:

added some more info for styles to use

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/midcom/net.nemein.discussion/handler/index.php

    r4051 r11983  
    4848        if ($threads) 
    4949        { 
    50             foreach ($threads as $thread) 
     50            foreach ($threads as $i => $thread) 
    5151            { 
    52                 $this->_request_data['thread'] =& $thread;   
     52                $this->_request_data['index_count'] =& $i; 
     53                $this->_request_data['thread'] =& $thread; 
    5354                $this->_request_data['latest_post'] = new net_nemein_discussion_post_dba($thread->latestpost);                
    5455                midcom_show_style('view-index-item'); 
  • trunk/midcom/net.nemein.discussion/handler/thread.php

    r5486 r11983  
    313313        $posts = $qb->execute(); 
    314314         
     315        $data['first_post'] =& $posts[0]; 
     316         
    315317        midcom_show_style('view-thread-header'); 
    316318         
    317         foreach ($posts as $post) 
    318         { 
     319        foreach ($posts as $i => $post) 
     320        { 
     321            $data['index_count'] = $i; 
    319322            $data['post'] =& $post; 
    320323