Index: trunk/phase3/includes/api/ApiMain.php |
— | — | @@ -320,7 +320,6 @@ |
321 | 321 | protected function printResult($isError) { |
322 | 322 | $printer = $this->mPrinter; |
323 | 323 | $printer->profileIn(); |
324 | | - $printer->initPrinter($isError); |
325 | 324 | |
326 | 325 | /* If the help message is requested in the default (xmlfm) format, |
327 | 326 | * tell the printer not to escape ampersands so that our links do |
— | — | @@ -329,6 +328,8 @@ |
330 | 329 | $printer->setUnescapeAmps ( $this->mAction == 'help' |
331 | 330 | && $params['format'] == ApiMain::API_DEFAULT_FORMAT ); |
332 | 331 | |
| 332 | + $printer->initPrinter($isError); |
| 333 | + |
333 | 334 | $printer->execute(); |
334 | 335 | $printer->closePrinter(); |
335 | 336 | $printer->profileOut(); |
Index: trunk/phase3/includes/api/ApiFormatBase.php |
— | — | @@ -111,7 +111,11 @@ |
112 | 112 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> |
113 | 113 | <html> |
114 | 114 | <head> |
115 | | - <title>MediaWiki API</title> |
| 115 | +<? if ($this->mUnescapeAmps) { |
| 116 | +?> <title>MediaWiki API</title> |
| 117 | +<? } else { |
| 118 | +?> <title>MediaWiki API Result</title> |
| 119 | +<? } ?> |
116 | 120 | </head> |
117 | 121 | <body> |
118 | 122 | <?php |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -140,6 +140,7 @@ |
141 | 141 | * Add rctype parameter to list=recentchanges that filters by type |
142 | 142 | * Add apprtype and apprlevel parameters to filter list=allpages by protection types and levels |
143 | 143 | * Add apdir parameter to enable listing all pages from Z to A |
| 144 | +* (bug 11721) Use a different title for results than for the help page. |
144 | 145 | |
145 | 146 | === Languages updated in 1.12 === |
146 | 147 | |