Last modified: 2014-02-19 22:27:50 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T17683, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 15683 - Configurable search result behavior
Configurable search result behavior
Status: RESOLVED WORKSFORME
Product: MediaWiki
Classification: Unclassified
Search (Other open bugs)
1.13.x
All All
: Low enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-09-22 05:58 UTC by Jonathan Eisenstein
Modified: 2014-02-19 22:27 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Jonathan Eisenstein 2008-09-22 05:58:43 UTC
The code in SpecialSearch.php currently has the following section for results that are unreadable by the current user:

 //If page content is not readable, just return the title.
 //This is not quite safe, but better than showing excerpts from non-readable pages
 //Note that hiding the entry entirely would screw up paging.
 if (!$t->userCanRead()) {
    wfProfileOut( $fname );
    return "<li>{$link}</li>\n";
 }

Could this be replaced with a user-configurable variable or hook for how the result should be displayed? This could be used to replace it with something like 'Result Hidden', or format it differently, or possibly hide it from display completely, if that wouldn't screw up paging. No need to remove it from the result set -- even if one page shows 7 items when it should be showing 10, that should be okay for many users.
Comment 1 Chad H. 2014-02-19 22:27:50 UTC
Easily done via the ShowSearchHitTitle, marking WORKSFORME.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links