Index: branches/new-installer/phase3/includes/installer/WebInstaller.php |
— | — | @@ -1607,6 +1607,11 @@ |
1608 | 1608 | $text = preg_replace_callback('/\(bug (\d+)\)/', array( 'WebInstaller_ReleaseNotes', 'replaceBugLinks' ), $text ); |
1609 | 1609 | // add links to manual to every global variable mentioned |
1610 | 1610 | $text = preg_replace_callback('/(\$wg[a-z0-9_]+)/i', array( 'WebInstaller_ReleaseNotes', 'replaceConfigLinks' ), $text ); |
| 1611 | + // special case for <pre> - formatted links |
| 1612 | + do { |
| 1613 | + $prev = $text; |
| 1614 | + $text = preg_replace( '/^([^\\s].*?)\r?\n[\\s]+(https?:\/\/)/m', "\\1\n:\\2", $text ); |
| 1615 | + } while ( $text != $prev ); |
1611 | 1616 | return $text; |
1612 | 1617 | } |
1613 | 1618 | |