Index: trunk/phase3/includes/Title.php |
— | — | @@ -580,7 +580,7 @@ |
581 | 581 | # |
582 | 582 | /* private */ function secureAndSplit() |
583 | 583 | { |
584 | | - global $wgLang, $wgLocalInterwiki; |
| 584 | + global $wgLang, $wgLocalInterwiki, $wgCapitalLinks; |
585 | 585 | $fname = "Title::secureAndSplit"; |
586 | 586 | wfProfileIn( $fname ); |
587 | 587 | |
— | — | @@ -674,8 +674,10 @@ |
675 | 675 | } |
676 | 676 | |
677 | 677 | # Initial capital letter |
678 | | - if( $this->mInterwiki == "") $t = $wgLang->ucfirst( $r ); |
679 | | - |
| 678 | + if( $wgCapitalLinks && $this->mInterwiki == "") { |
| 679 | + $t = $wgLang->ucfirst( $r ); |
| 680 | + } |
| 681 | + |
680 | 682 | # Fill fields |
681 | 683 | $this->mDbkeyform = $t; |
682 | 684 | $this->mUrlform = wfUrlencode( $t ); |
Index: trunk/phase3/includes/DefaultSettings.php |
— | — | @@ -305,4 +305,12 @@ |
306 | 306 | $wgRightsPage = NULL; |
307 | 307 | $wgRightsUrl = NULL; |
308 | 308 | $wgRightsText = NULL; |
| 309 | + |
| 310 | +# Set this to false to avoid forcing the first letter of links |
| 311 | +# to capitals. WARNING: may break links! This makes links |
| 312 | +# COMPLETELY case-sensitive. Links appearing with a capital at |
| 313 | +# the beginning of a sentence will *not* go to the same place |
| 314 | +# as links in the middle of a sentence using a lowercase initial. |
| 315 | +$wgCapitalLinks = true; |
| 316 | + |
309 | 317 | ?> |