From 6ae494e9e9e064629324e707855b9f9d4eddc054 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Mon, 31 May 2004 00:58:57 +0000 Subject: [PATCH]
isn't compatible with Netscape 4.x; use
to avoid gratuitously breaking it. (bug 963341) --- includes/Parser.php | 10 +++++----- includes/SpecialRecentchanges.php | 4 ++-- includes/SpecialWhatlinkshere.php | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/includes/Parser.php b/includes/Parser.php index f0f9897758..5b8dfb8c5e 100644 --- a/includes/Parser.php +++ b/includes/Parser.php @@ -110,8 +110,8 @@ class Parser "/(.) (\\?|:|!|\\302\\273)/i"=>"\\1 \\2", # french spaces, Guillemet-right "/(\\302\\253) /i"=>"\\1 ", - "/
/i" => '
', - "/
/i" => '
', + "/
/i" => '
', + "/
/i" => '
', "/
/i"=>'
', "/<\\/center *>/i" => '
', # Clean up spare ampersands; note that we probably ought to be @@ -584,7 +584,7 @@ class Parser $text = $this->removeHTMLtags( $text ); $text = $this->replaceVariables( $text, $args ); - $text = preg_replace( "/(^|\n)-----*/", "\\1
", $text ); + $text = preg_replace( "/(^|\n)-----*/", "\\1
", $text ); $text = $this->doHeadings( $text ); if($this->mOptions->getUseDynamicDates()) { @@ -1119,7 +1119,7 @@ class Parser // paragraph if ( '' == trim($t) ) { if ( $paragraphStack ) { - $output .= $paragraphStack.'
'; + $output .= $paragraphStack.'
'; $paragraphStack = false; $this->mLastSection = 'p'; } else { @@ -1885,7 +1885,7 @@ class Parser /* $pairs = array( "//i" => '
', - "/
/i" => "
", + "/
/i" => "
", ); $text = preg_replace(array_keys($pairs), array_values($pairs), $text); */ diff --git a/includes/SpecialRecentchanges.php b/includes/SpecialRecentchanges.php index 1276785285..4470c7622c 100644 --- a/includes/SpecialRecentchanges.php +++ b/includes/SpecialRecentchanges.php @@ -111,11 +111,11 @@ function wfSpecialRecentchanges( $par ) } else { $note = wfMsg( "rcnote", $wgLang->formatNum( $limit ), $wgLang->formatNum( $days ) ); } - $wgOut->addHTML( "\n
\n{$note}\n
" ); + $wgOut->addHTML( "\n
\n{$note}\n
" ); $note = rcDayLimitLinks( $days, $limit, "Recentchanges", $hideparams, false, $minorLink, $botLink, $liuLink ); - $note .= "
\n" . wfMsg( "rclistfrom", + $note .= "
\n" . wfMsg( "rclistfrom", $sk->makeKnownLink( $wgLang->specialPage( "Recentchanges" ), $wgLang->timeanddate( $now, true ), "{$hideparams}&from=$now" ) ); diff --git a/includes/SpecialWhatlinkshere.php b/includes/SpecialWhatlinkshere.php index 900f9e7db2..d8770bb438 100644 --- a/includes/SpecialWhatlinkshere.php +++ b/includes/SpecialWhatlinkshere.php @@ -27,7 +27,7 @@ function wfSpecialWhatlinkshere($par = NULL) $sk = $wgUser->getSkin(); $isredir = " (" . wfMsg( "isredirect" ) . ")\n"; - $wgOut->addHTML("< ".$sk->makeKnownLinkObj($nt, "", "redirect=no" )."
\n"); + $wgOut->addHTML("< ".$sk->makeKnownLinkObj($nt, "", "redirect=no" )."
\n"); if ( 0 == $id ) { $sql = "SELECT cur_id,cur_namespace,cur_title,cur_is_redirect FROM brokenlinks,cur WHERE bl_to='" . -- 2.20.1