supressUrlExpansion()

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

supressUrlExpansion()

Chris McIntosh-3
Hi,
  I have a page that looks like this

  ==[http://foo foo]==
  ==[http://foo foo]==
  ==[http://foo foo]==
  ==[http://foo foo]==

Which makes the TOC rendered as
  foo (http://foo)
  foo (http://foo)
  foo (http://foo)
  foo (http://foo)

I would prefer it to be rendered as

  foo
  foo
  foo
  foo


So I looked through the source and found that when it creates the TOC
it calls suppressUrlExpansion in Skin.php. Which is hardcoded to false
on line 1078

 function suppressUrlExpansion() {
                return false;
        }


So my question is any harm in changing this to true? If I do what
other things might it affect? Seems to be innocent enough, but just
want to be sure.

Thanks,
Chris McIntosh
_______________________________________________
MediaWiki-l mailing list
[hidden email]
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l