Index: trunk/phase3/includes/api/ApiParse.php |
— | — | @@ -168,16 +168,14 @@ |
169 | 169 | |
170 | 170 | if ( isset( $prop['headitems'] ) ) |
171 | 171 | $result_array['headitems'] = $this->formatHeadItems( $p_result->getHeadItems() ); |
172 | | - |
173 | | - if ( isset( $prop['headhtml'] ) ) { |
174 | 172 | |
| 173 | + if ( isset( $prop['headhtml'] ) ) { |
175 | 174 | $out = new OutputPage; |
176 | | - $out->addParserOutputNoText( $p_result ); // PO object generated by action=parse |
177 | | - |
| 175 | + $out->addParserOutputNoText( $p_result ); |
178 | 176 | $result_array['stylesheets'] = array(); |
179 | 177 | $result->setContent( $result_array['headhtml'], $out->headElement( $wgUser->getSkin() ) ); |
180 | 178 | } |
181 | | - |
| 179 | + |
182 | 180 | if ( !is_null( $oldid ) ) |
183 | 181 | $result_array['revid'] = intval( $oldid ); |
184 | 182 | |