Index: branches/wmf/1.17wmf1/includes/parser/Parser.php |
— | — | @@ -1401,16 +1401,10 @@ |
1402 | 1402 | |
1403 | 1403 | # No link text, e.g. [http://domain.tld/some.link] |
1404 | 1404 | if ( $text == '' ) { |
1405 | | - # Autonumber if allowed. See bug #5918 |
1406 | | - if ( strpos( wfUrlProtocols(), substr( $protocol, 0, strpos( $protocol, ':' ) ) ) !== false ) { |
1407 | | - $langObj = $this->getFunctionLang(); |
1408 | | - $text = '[' . $langObj->formatNum( ++$this->mAutonumber ) . ']'; |
1409 | | - $linktype = 'autonumber'; |
1410 | | - } else { |
1411 | | - # Otherwise just use the URL |
1412 | | - $text = htmlspecialchars( $url ); |
1413 | | - $linktype = 'free'; |
1414 | | - } |
| 1405 | + # Autonumber |
| 1406 | + $langObj = $this->getFunctionLang(); |
| 1407 | + $text = '[' . $langObj->formatNum( ++$this->mAutonumber ) . ']'; |
| 1408 | + $linktype = 'autonumber'; |
1415 | 1409 | } else { |
1416 | 1410 | # Have link text, e.g. [http://domain.tld/some.link text]s |
1417 | 1411 | # Check for trail |
Property changes on: branches/wmf/1.17wmf1/includes/parser/Parser.php |
___________________________________________________________________ |
Modified: svn:mergeinfo |
1418 | 1412 | Merged /trunk/phase3/includes/parser/Parser.php:r92005 |