1 Star 0 Fork 0

Stefan阿钢 / bstdn_task_post

Create your Gitee Account
Explore and code with more than 6 million developers,Free private repositories !:)
Sign up
Clone or download
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README.md

DiscuzX 论坛帖子类任务 插件 补丁

修复任务放弃时,调用指定方法问题

  • 根据自己论坛版本,找到对应文件,覆盖或修改代码
  • 当官方修复此问题后,将停用此项目

手动修改代码

  • 打开 source/class/class_task.php
  • 搜索 if(method_exists($taskclass, 'delete')) { 在上面添加如下代码
		$escript = explode(':', $this->task['scriptname']);
		if(count($escript) > 1) {
			include_once DISCUZ_ROOT.'./source/plugin/'.$escript[0].'/task/task_'.$escript[1].'.php';
			$taskclassname = 'task_'.$escript[1];
		} else {
			require_once libfile('task/'.$this->task['scriptname'], 'class');
			$taskclassname = 'task_'.$this->task['scriptname'];
		}
		$taskclass = new $taskclassname;

Comments ( 0 )

Sign in for post a comment

About

DiscuzX 论坛帖子类任务 插件 补丁 spread retract
Cancel

Releases

No release

Contributors

All

Activities

load more
can not load any more
1
https://gitee.com/bstdn/bstdn_task_post.git
git@gitee.com:bstdn/bstdn_task_post.git
bstdn
bstdn_task_post
bstdn_task_post
master

Search