Plugin WantedPages does not correctly process page names ending with a close parenthesis
- Status
- Closed
- Subject
- Plugin WantedPages does not correctly process page names ending with a close parenthesis
- Version
- 1.8.x
- Category
- Bug
- Feature
- Wiki Plugin (extends basic syntax)
- Resolution status
- New
- Submitted by
- Alan
- Lastmod by
- Alan
- Rating
- Description
Plugin WantedPages leaves off the close parenthesis at the end of a page name, marking that page as "does not exist". It does this regardless of the WantedPages table style.
I have a workaround that may work as a solution to be added to the regular co
debase. - Workaround
Edit lib/wiki-plugins/wikiplugin_wantedpages.php.
Find these lines (noting that np does not have a backslash):
Copy to clipboard$linkin = (! $debug) ? '((' : '~\np~'; // this is how toPages are handled $linkout = (! $debug) ? '))' : '~\np~';Add a space after the open parentheses in the quotation, and a space before the close parentheses in the quotation like so (without changing np):
Copy to clipboard$linkin = (! $debug) ? '(( ' : '~\np~'; // this is how toPages are handled $linkout = (! $debug) ? ' ))' : '~\np~';
Now find this line:Copy to clipboard$row[1] = '((' . $row[1] . '))'; // fromPagesAdd spaces inside the parentheses, same as before:
Copy to clipboard$row[1] = '(( ' . $row[1] . ' ))'; // fromPages- Importance
- 5
- Easy to solve?
- 10 easy
- Priority
- 50
- 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
- 6684
- Created
- Wednesday 06 June, 2018 04:30:19 UTC
by Alan - LastModif
- Wednesday 26 February, 2020 16:51:13 UTC