应用开发者
Discuz! 运维
- 贡献
- 186 点
- 金币
- 672 个

|
发表于 2024-3-27 09:28:37
|
查看全部
source/class/table/table_forum_thread.php
搜索
- public function fetch_all_by_tid($tids, $start = 0, $limit = 0, $tableid = 0) {
复制代码 上面加
- public function fetch_all_by_tid_desc($tids, $start = 0, $limit = 0, $tableid = 0) {
- $data = array();
- if(($data = $this->fetch_cache($tids)) === false || count($tids) != count($data)) {
- if(is_array($data) && !empty($data)) {
- $tids = array_diff($tids, array_keys($data));
- }
- if($data === false) $data = array();
- if(!empty($tids)) {
- $parameter = array($this->get_table_name($tableid), $tids);
- $query = DB::query("SELECT * FROM %t WHERE tid IN(%n) ORDER BY tid DESC".DB::limit($start, $limit), $parameter);
- while($value = DB::fetch($query)) {
- $data[$value['tid']] = $value;
- $this->store_cache($value['tid'], $value, $this->_cache_ttl);
- }
- }
- }
- return $data;
- }
复制代码
source/module/misc/misc_tag.php
搜索
改为
|
|