Index: branches/REL1_2/phase3/includes/Title.php |
— | — | @@ -401,7 +401,7 @@ |
402 | 402 | # |
403 | 403 | /* private */ function secureAndSplit() |
404 | 404 | { |
405 | | - global $wgLang, $wgLocalInterwiki; |
| 405 | + global $wgLang, $wgLocalInterwiki, $wgCapitalLinks; |
406 | 406 | $fname = "Title::secureAndSplit"; |
407 | 407 | wfProfileIn( $fname ); |
408 | 408 | |
— | — | @@ -486,7 +486,9 @@ |
487 | 487 | return false; |
488 | 488 | } |
489 | 489 | |
490 | | - if( $this->mInterwiki == "") $t = $wgLang->ucfirst( $r ); |
| 490 | + if( $wgCapitalLinks && $this->mInterwiki == "") { |
| 491 | + $t = $wgLang->ucfirst( $r ); |
| 492 | + } |
491 | 493 | $this->mDbkeyform = $t; |
492 | 494 | $this->mUrlform = wfUrlencode( $t ); |
493 | 495 | $this->mTextform = str_replace( "_", " ", $t ); |
Index: branches/REL1_2/phase3/includes/DefaultSettings.php |
— | — | @@ -281,4 +281,11 @@ |
282 | 282 | $wgProxyScriptPath = "$IP/proxy_check.php"; |
283 | 283 | $wgProxyMemcExpiry = 86400; |
284 | 284 | |
| 285 | +# Set this to false to avoid forcing the first letter of links |
| 286 | +# to capitals. WARNING: may break links! This makes links |
| 287 | +# COMPLETELY case-sensitive. Links appearing with a capital at |
| 288 | +# the beginning of a sentence will *not* go to the same place |
| 289 | +# as links in the middle of a sentence using a lowercase initial. |
| 290 | +$wgCapitalLinks = true; |
| 291 | + |
285 | 292 | ?> |