r63990 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r63989‎ | r63990 | r63991 >
Date:05:11, 21 March 2010
Author:simetrical
Status:ok
Tags:
Comment:
Style fixes
Modified paths:
  • /trunk/phase3/includes/OutputPage.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/OutputPage.php
@@ -2088,7 +2088,7 @@
20892089 }
20902090
20912091 if ( $this->getHTMLTitle() == '' ) {
2092 - $this->setHTMLTitle( wfMsg( 'pagetitle', $this->getPageTitle() ));
 2092+ $this->setHTMLTitle( wfMsg( 'pagetitle', $this->getPageTitle() ) );
20932093 }
20942094
20952095 $dir = $wgContLang->getDir();
@@ -2108,12 +2108,14 @@
21092109 $ret .= "<!doctype html>\n";
21102110 }
21112111 $ret .= "<html lang=\"$wgContLanguageCode\" dir=\"$dir\"";
2112 - if ( $wgHtml5Version ) $ret .= " version=\"$wgHtml5Version\"";
 2112+ if ( $wgHtml5Version ) {
 2113+ $ret .= " version=\"$wgHtml5Version\"";
 2114+ }
21132115 $ret .= ">\n";
21142116 } else {
21152117 $ret .= "<!DOCTYPE html PUBLIC \"$wgDocType\" \"$wgDTD\">\n";
21162118 $ret .= "<html xmlns=\"{$wgXhtmlDefaultNamespace}\" ";
2117 - foreach($wgXhtmlNamespaces as $tag => $ns) {
 2119+ foreach ( $wgXhtmlNamespaces as $tag => $ns ) {
21182120 $ret .= "xmlns:{$tag}=\"{$ns}\" ";
21192121 }
21202122 $ret .= "lang=\"$wgContLanguageCode\" dir=\"$dir\">\n";
@@ -2126,13 +2128,14 @@
21272129 $this->buildCssLinks(),
21282130 $this->getHeadScripts( $sk ),
21292131 $this->getHeadItems(),
2130 - ));
2131 - if( $sk->usercss ){
 2132+ ) );
 2133+ if ( $sk->usercss ) {
21322134 $ret .= Html::inlineStyle( $sk->usercss );
21332135 }
21342136
2135 - if ($wgUseTrackbacks && $this->isArticleRelated())
 2137+ if ( $wgUseTrackbacks && $this->isArticleRelated() ) {
21362138 $ret .= $this->getTitle()->trackbackRDF();
 2139+ }
21372140
21382141 $ret .= "</head>\n";
21392142

Status & tagging log