r19552 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r19551‎ | r19552 | r19553 >
Date:16:01, 21 January 2007
Author:hashar
Status:old
Tags:
Comment:
Indent output when adding links and meta tags
Modified paths:
  • /trunk/phase3/includes/OutputPage.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/OutputPage.php
@@ -1133,11 +1133,11 @@
11341134 "/<.*?>/" => '',
11351135 "/_/" => ' '
11361136 );
1137 - $ret .= "<meta name=\"keywords\" content=\"" .
 1137+ $ret .= "\t\t<meta name=\"keywords\" content=\"" .
11381138 htmlspecialchars(preg_replace(array_keys($strip), array_values($strip),implode( ",", $this->mKeywords ))) . "\" />\n";
11391139 }
11401140 foreach ( $this->mLinktags as $tag ) {
1141 - $ret .= '<link';
 1141+ $ret .= "\t\t<link";
11421142 foreach( $tag as $attr => $val ) {
11431143 $ret .= " $attr=\"" . htmlspecialchars( $val ) . "\"";
11441144 }