From my understanding Title::secureAndSplit(); is the only place where
anything to do with case-sensitivity of Titles is located.
^_^ If you poke me in the right way you could probably get me to hunt
down everything and create a patch to MediaWiki-trunk which would
introduce two new features:
* extend the global variable to allow for the options [full
case-sensitivity/full case-insensitivity/first letter only
case-insensitivity] while maintaining legacy support for previous
configurations.
* Add a new hook 'TitleCaseMods', or perhaps 'TitleSecureAndSplit', ^_^
or actually someone else should probably give me a good name for it for
what location it is put in; Which would allow for extensions to make
alterations to how titles are treated. This would allow for the creation
of extensions which would permit things like the per-namespace case
sensitivity which one group of wiki was asking for in Bugzilla at one
point in time.
~Daniel Friesen(Dantman) of:
-The Gaiapedia (
Hi
Sorry for my English :)
What I need is case insensitive titles. My solution for the problem was to
change collation in mysql from <unf8_bin> to <utf8_general_ci> in table
<page>, for field <page_title>.
But bigger problem with links persists. In my case, if there is an article
<Frank Dreben>, link [[Frank Dreben]] is treated like a link to an existent
article (GoodLink), but link [[frank dreben]] is treated like a link to a
non-existent article, so, this link opens editing of existent article <Frank
Dreben>. What can be fixed for that link [[frank dreben]] to be treated like
a GoodLink?
I've spent some time in Parser.php, LinkCache.php, Title.php, Linker.php,
LinkBatch.php but found nothing useful. The last thing I tried was to do
strtoupper on title every time array of link cache is filled, in
LinkCache.php. I also tried to do strtoupper on title every time data is
fetched from the array.
I've tried to make titles in cache be case insensitive, but it didn't work
out, not sure why - it seems like when links are constructed (parser, title,
linker, etc) only LinkCache methods are used.
Could anybody point a direction to dig in? :)
_______________________________________________
Wikitech-l mailing list
Wikitech-l(a)lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l