From: Sam Reed Date: Mon, 20 Jun 2011 13:57:22 +0000 (+0000) Subject: Expand return documentation for r84357 X-Git-Tag: 1.31.0-rc.0~29396 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/pie.php?a=commitdiff_plain;h=ee5922ccf6a777e7c562420aecac1f0c71e0a7bb;p=lhc%2Fweb%2Fwiklou.git Expand return documentation for r84357 --- 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