关于discuz7.2关联标签,该如何解决

WBOY
Release: 2016-06-13 13:49:59
Original
933 people have browsed it

关于discuz7.2关联标签

PHP code
<!--

Code highlighting produced by Actipro CodeHighlighter (freeware)
http://www.CodeHighlighter.com/

-->            if(is_array($data['relatedtag']['order'])) {
                asort($data['relatedtag']['order']);
                $relatedtag = array();
                foreach($data['relatedtag']['order'] AS $k => $v) {
                    $relatedtag['status'][$k] = $data['relatedtag']['status'][$k];
                    $relatedtag['name'][$k] = $data['relatedtag']['name'][$k];
                    $relatedtag['limit'][$k] = $data['relatedtag']['limit'][$k];
                    $relatedtag['template'][$k] = $data['relatedtag']['template'][$k];
                }
                $data['relatedtag'] = $relatedtag;

                foreach((array)$data['relatedtag']['status'] AS $appid => $status) {
                    if(!$status) {
                        unset($data['relatedtag']['limit'][$appid]);
                    }
                }
                unset($data['relatedtag']['status'], $data['relatedtag']['order'], $relatedtag);
            }
Copy after login

上边的这段代码是 discuz7.2 中 cache_func.php 中的 relatedtag 的值在后台或别的地方那里可以设置(非手动修改)

------解决方案--------------------
这个好像没法设置吧

$data是程序中声明的空数组 $data = array();
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!