Index: trunk/phase3/includes/parser/Parser.php |
— | — | @@ -5162,6 +5162,8 @@ |
5163 | 5163 | * @param $newText String: replacement text for section data. |
5164 | 5164 | * @return String: for "get", the extracted section text. |
5165 | 5165 | * for "replace", the whole page with the section replaced. |
| 5166 | + * If the page is empty and section 0 is requested, $text (as '') |
| 5167 | + * is returned |
5166 | 5168 | */ |
5167 | 5169 | private function extractSections( $text, $section, $mode, $newText='' ) { |
5168 | 5170 | global $wgTitle; # not generally used but removes an ugly failure mode |