Johannes Perl schrieb:
hi,
is there a way to search custom namespaces by default? already searched on metawiki etc. but didn't find anything about it.
the way i tried is:
$wgNamespacesToBeSearchedDefault[] = array ( NS_MAIN => true, 100 => true, 101 => true, 102 => true, 103 => true );
Unfortunately it's not working. I tried it with a anonymous user, so the issue the user was created before this setting shouldn't matter.
-Johannes
Solved the problem on my own. I really don't know where I got the brackets from ^^
$wgNamespacesToBeSearchedDefault = array( -1 => false, NS_MAIN => true, NS_USER => false, NS_USER_TALK => false, NS_PROJECT_TALK => false, NS_IMAGE_TALK => false, NS_IMAGE_TALK => false, NS_TEMPLATE_TALK => false, NS_HELP_TALK => false, NS_CATEGORY_TALK => false, 100 => true, 102 => true );
-Johannes