-
Notifications
You must be signed in to change notification settings - Fork 120
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bug #10
Comments
已修复 |
还是抛出一个问题 Call to undefined function array_column()
分析原因是PHP版本低于5.5的原因。nangge大是否应该做下兼容啊。 |
为什么是js 分类, 而不是放到php 分类里面呢 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
文件位置:
application\common\taglib\Tag.php
问题:
条件:where status = 0 and cid = 13 or cid in (2,3,4)(当分类为子类时无法隐藏删除)
应改为:where status = 0 and cid = 13 or cid in (2,3,4) and status = 0;(不知如何用tp5连续操作表达)
所以改为一级分类不能添加文章,二级才能添加文章,也有利于站点结构
修改为:
` /**
* 获取文章列表
/
public function tagArticle($tag, $content)
{
$cid = isset($tag['cid']) ? $tag['cid'] : 0;
$order = isset($tag['orderby']) ? $tag['orderby'] : '';
$limit = isset($tag['limit']) ? $tag['limit'] : 0;
$pagesize = isset($tag['pagesize']) ? $tag['pagesize'] : 0;
$field = isset($tag['field']) ? $tag['field'] : '';
$empty = isset($tag['empty']) ? $tag['empty'] : '';
$module = request()->module();
/$children_ids = Db::name('category')->where('pid',$cid)->field('id')->select();
print_r(array_column($children_ids,'id'));die;*/
$parse = <<<EOF
<?php
$condition['status'] = 0;
EOF;
`
The text was updated successfully, but these errors were encountered: