如何向linux贡献代码,第一次为开源社区贡献代码

本文内容遵从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.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值