ここの情報は古いです。ご理解頂いた上でお取り扱いください。

Changeset 2958


Ignore:
Timestamp:
May 17, 2007, 8:02:24 PM (12 years ago)
Author:
ogawa
Message:

#773:携帯:コミュニティ最新書込みのソートが最新書込み順でない

Location:
OpenPNE/branches/2.6.x/webapp
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE/branches/2.6.x/webapp/lib/db/commu.php

    r2917 r2958  
    892892}
    893893
    894 /**
    895  * 参加コミュニティのリスト(2.6.2以降は未使用)
    896  *
    897  * @param int $c_member_id
    898  * @param int $limit
    899  * @return  array コミュニティ情報
    900  */
    901 function db_commu_c_commu_list4c_member_id_3($c_member_id, $limit)
    902 {
    903     static $is_recurred = false;  //再帰処理中かどうかの判定フラグ
    904 
    905     if (!$is_recurred) {  //function cacheのために再帰処理を行う
    906         $is_recurred = true;
    907         $funcargs = func_get_args();
    908         return pne_cache_recursive_call(OPENPNE_FUNCTION_CACHE_LIFETIME_LONG, __FUNCTION__, $funcargs);
    909     }
    910 
    911     $is_recurred = false;
    912 
    913     $sql = "SELECT c.* FROM c_commu_member AS cm, c_commu AS c" .
    914        " WHERE cm.c_member_id=?" .
    915        " AND c.c_commu_id=cm.c_commu_id" .
    916        " ORDER BY RAND()";
    917     $params = array(intval($c_member_id));
    918     $c_commu_list = db_get_all_limit($sql, 0, $limit, $params);
    919 
    920     foreach ($c_commu_list as $key => $value) {
    921         $c_commu_list[$key]['count_commu_members'] =  db_commu_count_c_commu_member_list4c_commu_id($value['c_commu_id']);
    922     }
    923     return $c_commu_list;
    924 }
    925 
    926894function db_commu_c_topic_list4target_c_commu_id($c_commu_id, $c_member_id, $page = 1, $page_size = 10, $event_flag = 0, $topic_with_event = 0)
    927895{
  • OpenPNE/branches/2.6.x/webapp/lib/util/cache.php

    r2395 r2958  
    156156    $c_member_id = (int)$c_member_id;
    157157    pne_cache_drop('db_commu_c_commu_list_lastupdate4c_member_id', $c_member_id, 5);
    158     pne_cache_drop('db_commu_c_commu_list4c_member_id_3', $c_member_id, 9);
    159158    pne_cache_drop('db_commu_c_commu_list4c_member_id_2', $c_member_id, 9);
    160159    $c_member_id = (string)$c_member_id;
    161160    pne_cache_drop('db_commu_c_commu_list_lastupdate4c_member_id', $c_member_id, 5);
    162     pne_cache_drop('db_commu_c_commu_list4c_member_id_3', $c_member_id, 9);
    163161    pne_cache_drop('db_commu_c_commu_list4c_member_id_2', $c_member_id, 9);
    164162}
  • OpenPNE/branches/2.6.x/webapp/modules/ktai/page/h_com_comment_list.php

    r102 r2958  
    2020        $this->set("page_size", $page_size);
    2121
    22         $lst = k_p_h_home_c_commu_topic_comment_list4c_member_id($u, $page_size, $page);
     22        $lst = db_commu_c_commu_topic_comment_list4c_member_id_2($u, $page_size, $page);
    2323        $this->set("h_com_comment_list", $lst[0]);
    2424        $this->set("is_prev", $lst[1]);
  • OpenPNE/branches/2.6.x/webapp/modules/pc/page/h_com_comment_list.php

    r102 r2958  
    2323        $this->set("page_size", $page_size);
    2424
    25         $lst = p_h_com_comment_list_c_commu_topic_comment_list4c_member_id($u, $page_size, $page);
     25        $lst = db_commu_c_commu_topic_comment_list4c_member_id_2($u, $page_size, $page);
    2626        $this->set("h_com_comment_list", $lst[0]);
    2727
Note: See TracChangeset for help on using the changeset viewer.