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

Changeset 2957


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

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

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

Legend:

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

    r2927 r2957  
    910910}
    911911
    912 /**
    913  * 参加コミュニティのリスト(2.6.2以降は未使用)
    914  *
    915  * @param int $c_member_id
    916  * @param int $limit
    917  * @return  array コミュニティ情報
    918  */
    919 function db_commu_c_commu_list4c_member_id_3($c_member_id, $limit)
    920 {
    921     static $is_recurred = false;  //再帰処理中かどうかの判定フラグ
    922 
    923     if (!$is_recurred) {  //function cacheのために再帰処理を行う
    924         $is_recurred = true;
    925         $funcargs = func_get_args();
    926         return pne_cache_recursive_call(OPENPNE_FUNCTION_CACHE_LIFETIME_LONG, __FUNCTION__, $funcargs);
    927     }
    928 
    929     $is_recurred = false;
    930 
    931     $sql = "SELECT c.* FROM c_commu_member AS cm, c_commu AS c" .
    932        " WHERE cm.c_member_id=?" .
    933        " AND c.c_commu_id=cm.c_commu_id" .
    934        " ORDER BY RAND()";
    935     $params = array(intval($c_member_id));
    936     $c_commu_list = db_get_all_limit($sql, 0, $limit, $params);
    937 
    938     foreach ($c_commu_list as $key => $value) {
    939         $c_commu_list[$key]['count_commu_members'] =  db_commu_count_c_commu_member_list4c_commu_id($value['c_commu_id']);
    940     }
    941     return $c_commu_list;
    942 }
    943 
    944912function 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)
    945913{
  • OpenPNE/branches/2.8.x/webapp/lib/util/cache.php

    r2951 r2957  
    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.8.x/webapp/modules/ktai/page/h_com_comment_list.php

    r1856 r2957  
    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.8.x/webapp/modules/pc/page/h_com_comment_list.php

    r1856 r2957  
    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.