Index: trunk/phase3/includes/parser/Parser.php |
— | — | @@ -1540,16 +1540,10 @@ |
1541 | 1541 | |
1542 | 1542 | # No link text, e.g. [http://domain.tld/some.link] |
1543 | 1543 | if ( $text == '' ) { |
1544 | | - # Autonumber if allowed. See bug #5918 |
1545 | | - if ( strpos( wfUrlProtocols(), substr( $protocol, 0, strpos( $protocol, ':' ) ) ) !== false ) { |
1546 | | - $langObj = $this->getFunctionLang(); |
1547 | | - $text = '[' . $langObj->formatNum( ++$this->mAutonumber ) . ']'; |
1548 | | - $linktype = 'autonumber'; |
1549 | | - } else { |
1550 | | - # Otherwise just use the URL |
1551 | | - $text = htmlspecialchars( $url ); |
1552 | | - $linktype = 'free'; |
1553 | | - } |
| 1544 | + # Autonumber |
| 1545 | + $langObj = $this->getFunctionLang(); |
| 1546 | + $text = '[' . $langObj->formatNum( ++$this->mAutonumber ) . ']'; |
| 1547 | + $linktype = 'autonumber'; |
1554 | 1548 | } else { |
1555 | 1549 | # Have link text, e.g. [http://domain.tld/some.link text]s |
1556 | 1550 | # Check for trail |