* (bug 15196) Free external links should be numbered in a localised manner
authorNiklas Laxström <nikerabbit@users.mediawiki.org>
Sun, 28 Sep 2008 08:45:03 +0000 (08:45 +0000)
committerNiklas Laxström <nikerabbit@users.mediawiki.org>
Sun, 28 Sep 2008 08:45:03 +0000 (08:45 +0000)
RELEASE-NOTES
includes/parser/Parser.php

index 495425d..89b4528 100644 (file)
@@ -230,6 +230,7 @@ The following extensions are migrated into MediaWiki 1.14:
 * (bug 15642) Blocked sysops can no longer block other users
 * Http::request() now respects $wgHTTPtimeout when not using cURL
 * (bug 15158) Userinvalidcssjstitle not shown on preview
+* (bug 15196) Free external links should be numbered in a localised manner
 
 === API changes in 1.14 ===
 
index 1f56013..c5b11ac 100644 (file)
@@ -1377,7 +1377,8 @@ class Parser
                        if ( $text == '' ) {
                                # Autonumber if allowed. See bug #5918
                                if ( strpos( wfUrlProtocols(), substr($protocol, 0, strpos($protocol, ':')) ) !== false ) {
-                                       $text = '[' . ++$this->mAutonumber . ']';
+                                       $langObj = $this->getFunctionLang();
+                                       $text = '[' . $langObj->formatNum( ++$this->mAutonumber ) . ']';
                                        $linktype = 'autonumber';
                                } else {
                                        # Otherwise just use the URL