PEAK XOOPS - d3pipe (v0.68) includes extra code ... ? in englishin japanese

d3pipe (v0.68) includes extra code ... ?

  • You cannot open a new topic into this forum
  • Guests cannot post into this forum
Previous post - Next post | Parent - Children.1 | Posted on 2009/8/23 2:10
viva  ʼ   Posts: 1
Hi, GIJOE!

I have always used your useful module "d3pipe".
Special thanks!

By the way, I downloaded the d3pipe (v0.68) from this site,
and make a setup for bulletin(v2.17 // HD Version),
but it doesn't work.

To say it concretely, there may be included code like this:
=>xoops_trust_path/modules/d3pipes/joints/block/D3pipesBlockBulletinlist.class.php
=>at line 30 or around
=>
(line29)4 => empty( $params[1] ) ? 10 : intval( $params[1] ) ,
(line30)4 => 0 ,



Please teach me why you should write line30 after line29.
Why should you overlap with the 30th line and the 29th line?
(Actually, it works well even if I erased the line 30...)


thanks!
Votes:8 Average:10.00
Previous post - Next post | Parent - No child | Posted on 2009/8/23 16:04
GIJOE  Ǥ   Posts: 4110
hi viva.

Quote:

To say it concretely, there may be included code like this:
=>xoops_trust_path/modules/d3pipes/joints/block/D3pipesBlockBulletinlist.class.php
=>at line 30 or around
=>
(line29)4 => empty( $params[1] ) ? 10 : intval( $params[1] ) ,
(line30)4 => 0 ,

It must be a typo

The code should be:
		$this->block_options = array(
			'disable_renderer' => true ,
			0 => $this->target_dirname , // mydirname of bulletin
			1 => 'published DESC' , // order
			2 => empty( $params[1] ) ? 10 : intval( $params[1] ) , // entries
			3 => 255 , // max_entries
			4 => empty( $params[1] ) ? 10 : intval( $params[1] ) , // entries with body
		) ;

I've just fixed it, and this fixation will be included in the next release.

Thank you for reporting the bug!
Votes:8 Average:10.00

  Advanced search


Login
Username or e-mail:

Password:

Remember Me

Lost Password?

Register now!