dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5fcd668
)
Expand return documentation for r84357
author
Sam Reed
<reedy@users.mediawiki.org>
Mon, 20 Jun 2011 13:57:22 +0000
(13:57 +0000)
committer
Sam Reed
<reedy@users.mediawiki.org>
Mon, 20 Jun 2011 13:57:22 +0000
(13:57 +0000)
includes/parser/Parser.php
patch
|
blob
|
history
diff --git
a/includes/parser/Parser.php
b/includes/parser/Parser.php
index
e462ccd
..
2640a98
100644
(file)
--- 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