Patch for Plugin ATTACH bug reported in bug tracker id 2474
- Status
- Closed
- Subject
- Patch for Plugin ATTACH bug reported in bug tracker id 2474
- Version
- 2.x
3.x - Category
- Patch
- Feature
- Wiki Plugin (extends basic syntax)
- Resolution status
- Fixed or Solved
- Submitted by
- lindon
- Lastmod by
- luci
- Rating
- Description
- As noted in bug tracker id 2474, bullets parameter doesn't create a bulleted list. "All" list is poorly formatted with page links that don't work.
- Solution
Below is the patch to fix these issues in lib/wikiplugins/wikiplugin_attach.php. If I'm able to post an attachment after I submit this patch, I'll attach the entire file with the fixes.
Below are the changes:
Line 226 and 238: Concatenation "." added so that bullets appear when electedCopy to clipboardLine 226: $link.= '<img src="tiki-download_wiki_attachment.php?attId='.$atts['data'][$n]['attId'].$url.'" class="wiki"'; Line 238: $link.= '<a href="tiki-download_wiki_attachment.php?attId='.$atts['data'][$n]['attId'].$url.'&download=y" class="wiki"';Line 278-280: Fixed link to pages when all parameter is usedCopy to clipboardLines 278-280 replaced with: $pageall = strip_tags($atts['data'][$n]['page']); if( isset( $all ) ) { $link.= " attached to ".'<a title="'.$pageall.'" href="'.$pageall.'" class="wiki">'.$pageall.'</a>'; }Line 292: Changed separator to create a new line for each attachmentCopy to clipboardLine 292 setting of $separator variable replaced with: if ( isset( $bullets ) && $bullets ) { $separator = "\n"; } else { $separator = "<br />\n"; }- Importance
- 4
- Priority
- 20
- Demonstrate Bug on Tiki 19+
-
This bug has been demonstrated on show2.tiki.org
Please demonstrate your bug on show2.tiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show2.tiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- Demonstrate Bug (older Tiki versions)
-
This bug has been demonstrated on show.tikiwiki.org
Please demonstrate your bug on show.tikiwiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show.tikiwiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- Ticket ID
- 2475
- Created
- Saturday 02 May, 2009 19:47:08 UTC
by Unknown - LastModif
- Friday 08 May, 2009 01:35:06 UTC