Home  >  Article  >  Backend Development  >  关于discuz7.2关联标签,该如何解决

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

WBOY
WBOYOriginal
2016-06-13 10:01:23810browse

关于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);            }

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

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

$data是程序中声明的空数组 $data = array();
Statement:
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