[Mediawiki-l] To Change Separator Character (underscore to Dot)

Elliott F. Cable ecable at avxw.com
Sun May 14 18:29:00 UTC 2006


SICK! Dude, thanks - didn't think of that.

On May 14, 2006, at 10:26 AM, iubito wrote:

> <?php
> # Change URL, replace _ by -
> $wgHooks['GetLocalURL'][] = 'underscoreToHyphen';
>
> //wfRunHooks( 'GetLocalURL', array( &$this, &$url, $query ) );
> function underscoreToHyphen($title, $url, $query) {
> $url = str_replace("_", "-", $url);
> #wfDebug('extension/underscoreToHyphen :
> $title,$url='.$url.',$query='.$query."\n");
> }
> ?>




More information about the MediaWiki-l mailing list