第一次为开源社区贡献代码
本文内容遵从CC版权协议, 可以随意转载, 但必须以超链接形式标明文章原始出处和作者信息及版权声明网址: http://www.penglixun.com/tech/program/frist_contribution_for_open_source.html
今天使用Collabtive项目管理平台的时候发现其中的任务列表代码有问题,
于是发扬了一下开源精神,修改了一下代码,并发给了作者,
第一次为开源社区贡献代码,虽然小的微不足道,但是很兴奋,今后要贡献更多的代码。
Hello, I found a bug in this projrct.
In the file “\include\class.task.php” line 25 & line 26.
Your codes are :
$this->mylog = new mylog;
$this->plugin = new plugin();
This will cause a error:
Fatal error: Call to a member function callSignalFuncs() on a non-object in /opt/lampp/htdocs/pm/include/class.task.php on line 118
Because you defined like this:
class task
{
private $mylog;
private $plugins;
……
}
But you used like this:
$this->plugin = new plugin();
I change these two line to:
$this->mylog = new mylog();
$this->plugins = new plugin();
Now it run well.
I’m a chinese student that like Open Source and Linux.
My English is poor, I hope you can understand what I said.