r62234 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r62233‎ | r62234 | r62235 >
Date:10:54, 10 February 2010
Author:catrope
Status:ok
Tags:
Comment:
Whitespace fixes for r62195, remove out-of-context comment
Modified paths:
  • /trunk/phase3/includes/api/ApiParse.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/api/ApiParse.php
@@ -168,16 +168,14 @@
169169
170170 if ( isset( $prop['headitems'] ) )
171171 $result_array['headitems'] = $this->formatHeadItems( $p_result->getHeadItems() );
172 -
173 - if ( isset( $prop['headhtml'] ) ) {
174172
 173+ if ( isset( $prop['headhtml'] ) ) {
175174 $out = new OutputPage;
176 - $out->addParserOutputNoText( $p_result ); // PO object generated by action=parse
177 -
 175+ $out->addParserOutputNoText( $p_result );
178176 $result_array['stylesheets'] = array();
179177 $result->setContent( $result_array['headhtml'], $out->headElement( $wgUser->getSkin() ) );
180178 }
181 -
 179+
182180 if ( !is_null( $oldid ) )
183181 $result_array['revid'] = intval( $oldid );
184182

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r62195* (bug 18608) - API should provide list of CSS styles to apply to rendered o...reedy20:47, 9 February 2010

Status & tagging log