Index: branches/new-installer/phase3/includes/installer/WebInstaller.php |
— | — | @@ -1601,7 +1601,7 @@ |
1602 | 1602 | $text = preg_replace( "/\n([\\*#])([^\r\n]*?)\r?\n([^\r\n#\\*:]+)/", "\n\\1\\2 \\3", $text ); |
1603 | 1603 | } while ( $text != $prev ); |
1604 | 1604 | // turn (bug nnnn) into links |
1605 | | - $text = preg_replace_callback('/\(bug (\d+)\)/', array( $this, 'replaceBugLinks' ), $text ); |
| 1605 | + $text = preg_replace_callback('/bug (\d+)/', array( $this, 'replaceBugLinks' ), $text ); |
1606 | 1606 | // add links to manual to every global variable mentioned |
1607 | 1607 | $text = preg_replace_callback('/(\$wg[a-z0-9_]+)/i', array( $this, 'replaceConfigLinks' ), $text ); |
1608 | 1608 | // special case for <pre> - formatted links |
— | — | @@ -1613,8 +1613,8 @@ |
1614 | 1614 | } |
1615 | 1615 | |
1616 | 1616 | private function replaceBugLinks( $matches ) { |
1617 | | - return '(<span class="config-plainlink">[https://bugzilla.wikimedia.org/show_bug.cgi?id=' . |
1618 | | - $matches[1] . ' bug ' . $matches[1] . ']</span>)'; |
| 1617 | + return '<span class="config-plainlink">[https://bugzilla.wikimedia.org/' . |
| 1618 | + $matches[1] . ' bug ' . $matches[1] . ']</span>'; |
1619 | 1619 | } |
1620 | 1620 | |
1621 | 1621 | private function replaceConfigLinks( $matches ) { |