[Mediawiki-l] supressUrlExpansion()

Chris McIntosh cmcintosh at gmail.com
Sat Mar 18 00:30:53 UTC 2006


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



More information about the MediaWiki-l mailing list