| Title | Referring Pages Plugin Dont Write Noboby After Filtering |
| Date | 30-Jun-2006 11:03:49 EEST |
| Version | 2.4.6 |
| Submitter | François Burtin |
| Bug criticality | CosmeticBug |
| Browser version | FF |
| Bug status | ClosedBug |
| PageProvider used | default |
| Servlet Container | Tomcat5.5 |
| Operating System | XP |
| URL | |
| Java version | 1.5 |
In ReferringPagesPlugin, when there's no referrers, the plugin writes ...nobody
To work, this plugin :
- gets all referers (...refmgr.findReferrers...)
- then :
- filters them if there're any
- else print ...nobody
But if you have referrers before filtering but none after filtering, it will write...nothing. Is it really a bug?
To have ...nobody after filtering, instead of else (at line 90), I put if( links == null || links.size() == 0 )
Here's the code :
...
Collection links = refmgr.findReferrers( page.getName() );
...
...
if( links != null && links.size() > 0 )
{
...
filtering and more
...
}
else <--------------------------Here
{
wikitext = "...nobody";
}
Fixed in 2.4.31