<br/> isn't compatible with Netscape 4.x; use <br /> to avoid gratuitously breaking it. (bug 963341)
This commit is contained in:
parent
9b30672a81
commit
6ae494e9e9
3 changed files with 8 additions and 8 deletions
|
|
@ -110,8 +110,8 @@ class Parser
|
|||
"/(.) (\\?|:|!|\\302\\273)/i"=>"\\1 \\2",
|
||||
# french spaces, Guillemet-right
|
||||
"/(\\302\\253) /i"=>"\\1 ",
|
||||
"/<hr *>/i" => '<hr/>',
|
||||
"/<br *>/i" => '<br/>',
|
||||
"/<hr *>/i" => '<hr />',
|
||||
"/<br *>/i" => '<br />',
|
||||
"/<center *>/i"=>'<div class="center">',
|
||||
"/<\\/center *>/i" => '</div>',
|
||||
# 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<hr/>", $text );
|
||||
$text = preg_replace( "/(^|\n)-----*/", "\\1<hr />", $text );
|
||||
|
||||
$text = $this->doHeadings( $text );
|
||||
if($this->mOptions->getUseDynamicDates()) {
|
||||
|
|
@ -1119,7 +1119,7 @@ class Parser
|
|||
// paragraph
|
||||
if ( '' == trim($t) ) {
|
||||
if ( $paragraphStack ) {
|
||||
$output .= $paragraphStack.'<br/>';
|
||||
$output .= $paragraphStack.'<br />';
|
||||
$paragraphStack = false;
|
||||
$this->mLastSection = 'p';
|
||||
} else {
|
||||
|
|
@ -1885,7 +1885,7 @@ class Parser
|
|||
/*
|
||||
$pairs = array(
|
||||
"/<br.+(clear|break)=[\"']?(all|both)[\"']?\\/?>/i" => '<br style="clear:both;"/>',
|
||||
"/<br *?>/i" => "<br/>",
|
||||
"/<br *?>/i" => "<br />",
|
||||
);
|
||||
$text = preg_replace(array_keys($pairs), array_values($pairs), $text);
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -111,11 +111,11 @@ function wfSpecialRecentchanges( $par )
|
|||
} else {
|
||||
$note = wfMsg( "rcnote", $wgLang->formatNum( $limit ), $wgLang->formatNum( $days ) );
|
||||
}
|
||||
$wgOut->addHTML( "\n<hr/>\n{$note}\n<br/>" );
|
||||
$wgOut->addHTML( "\n<hr />\n{$note}\n<br />" );
|
||||
|
||||
$note = rcDayLimitLinks( $days, $limit, "Recentchanges", $hideparams, false, $minorLink, $botLink, $liuLink );
|
||||
|
||||
$note .= "<br/>\n" . wfMsg( "rclistfrom",
|
||||
$note .= "<br />\n" . wfMsg( "rclistfrom",
|
||||
$sk->makeKnownLink( $wgLang->specialPage( "Recentchanges" ),
|
||||
$wgLang->timeanddate( $now, true ), "{$hideparams}&from=$now" ) );
|
||||
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ function wfSpecialWhatlinkshere($par = NULL)
|
|||
$sk = $wgUser->getSkin();
|
||||
$isredir = " (" . wfMsg( "isredirect" ) . ")\n";
|
||||
|
||||
$wgOut->addHTML("< ".$sk->makeKnownLinkObj($nt, "", "redirect=no" )."<br/>\n");
|
||||
$wgOut->addHTML("< ".$sk->makeKnownLinkObj($nt, "", "redirect=no" )."<br />\n");
|
||||
|
||||
if ( 0 == $id ) {
|
||||
$sql = "SELECT cur_id,cur_namespace,cur_title,cur_is_redirect FROM brokenlinks,cur WHERE bl_to='" .
|
||||
|
|
|
|||
Loading…
Reference in a new issue