From ee5922ccf6a777e7c562420aecac1f0c71e0a7bb Mon Sep 17 00:00:00 2001 From: Sam Reed Date: Mon, 20 Jun 2011 13:57:22 +0000 Subject: [PATCH] Expand return documentation for r84357 --- includes/parser/Parser.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/includes/parser/Parser.php b/includes/parser/Parser.php index e462ccdf67..2640a986c5 100644 --- a/includes/parser/Parser.php +++ b/includes/parser/Parser.php @@ -5162,6 +5162,8 @@ class Parser { * @param $newText String: replacement text for section data. * @return String: for "get", the extracted section text. * for "replace", the whole page with the section replaced. + * If the page is empty and section 0 is requested, $text (as '') + * is returned */ private function extractSections( $text, $section, $mode, $newText='' ) { global $wgTitle; # not generally used but removes an ugly failure mode -- 2.20.1