[Bug 15018] Limiting which namespaces can be searched

2009-06-06 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=15018


jida...@jidanni.org changed:

   What|Removed |Added

 CC||jida...@jidanni.org
   Severity|enhancement |minor
Version|1.12.0  |1.16-svn




--- Comment #3 from jida...@jidanni.org  2009-06-07 00:35:28 UTC ---
Offline, I discovered the same bug, and wrote the following:

==Search namespaces hardwired==

Below I'm not talking about which namespaces the user can have checked
by default, but instead what namespaces he will see visible at all on 
Special:Search and Special:Preferences in the first place.

SearchEngine.php's searchableNamespaces() is hardwired and
doesn't let anybody e.g., take NS_FILE, NS_FILE_TALK off the list, for
sites with $wgEnableUploads = false; meaning they show up in
Special:Search, though useless.
What's worse is in Preferences.php, the namespaces are again hardwired:
  foreach( $wgContLang->getNamespaces() as $ns => $name ) {
if ($ns < 0) continue;
Sure, searchableNamespaces() is seen in several places in
Preferences.php, apparently left behind detached.


-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
You are on the CC list for the bug.

___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 15018] Limiting which namespaces can be searched

2009-02-03 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=15018


Daniel Remeseiro  changed:

   What|Removed |Added

 CC||daniel.remese...@gmail.com




--- Comment #2 from Daniel Remeseiro   2009-02-03 
18:45:20 UTC ---
i think  also there are many people  who wants to enable/disable the
advanced search.
I suggest a new global boolean var:

$wgPowerSearchSelection - if false nothing happens , the advanced search shows
as mediawiki now: all checkboxes of all namespaces.

-if true then triggers to read the $wgNamespacesToBeSearchedDefault array
values and show just this checkboxes options.


-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
You are on the CC list for the bug.

___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l