https://bugzilla.wikimedia.org/show_bug.cgi?id=19833

--- Comment #2 from Olivier Finlay Beaton <[email protected]> 2011-09-24 
05:16:35 UTC ---
Created attachment 9094
  --> https://bugzilla.wikimedia.org/attachment.cgi?id=9094
Configuration Option

I made a patch to add configuration option $wgEnableSearchIPContributors for
LocalSettings.php

This is my very first core change and I only started writting extensions on
Sept 17th, so please review.

I debated if this should be a user option under search, but decided non-admins
would really wonder wth it is. Feel free to disagree and ask me to add that
too.

I've been frustrated by the lack of this feature for 2+ years, my corporate
wiki contains networking ips of hosts and switches (no it's not a cmdb) and I
and the other admins are constantly trying to search by ip. I kept searching
for an extension or configuration setting but always came up empty.

Finally today after coding a few extensions I looked into it and I see I might
be able to use the hook SearchGetNearMatch to make this an extension, but I'm
not certain.

That's when I thought this should really be a config setting and would be a
good exercise for my first attempt at a patch. 

So here it is! I used -p1 -i to apply it.

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

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to