For MediaWiki (recent comments | status changes | tags | authors | states | release notes | statistics)
Index: trunk/phase3/includes/Title.php =================================================================== --- trunk/phase3/includes/Title.php (revision 2972) +++ trunk/phase3/includes/Title.php (revision 2973) @@ -580,7 +580,7 @@ # /* private */ function secureAndSplit() { - global $wgLang, $wgLocalInterwiki; + global $wgLang, $wgLocalInterwiki, $wgCapitalLinks; $fname = "Title::secureAndSplit"; wfProfileIn( $fname ); @@ -674,8 +674,10 @@ } # Initial capital letter - if( $this->mInterwiki == "") $t = $wgLang->ucfirst( $r ); - + if( $wgCapitalLinks && $this->mInterwiki == "") { + $t = $wgLang->ucfirst( $r ); + } + # Fill fields $this->mDbkeyform = $t; $this->mUrlform = wfUrlencode( $t ); Index: trunk/phase3/includes/DefaultSettings.php =================================================================== --- trunk/phase3/includes/DefaultSettings.php (revision 2972) +++ trunk/phase3/includes/DefaultSettings.php (revision 2973) @@ -305,4 +305,12 @@ $wgRightsPage = NULL; $wgRightsUrl = NULL; $wgRightsText = NULL; + +# Set this to false to avoid forcing the first letter of links +# to capitals. WARNING: may break links! This makes links +# COMPLETELY case-sensitive. Links appearing with a capital at +# the beginning of a sentence will *not* go to the same place +# as links in the middle of a sentence using a lowercase initial. +$wgCapitalLinks = true; + ?>