dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
c5a7430
)
Merge "Stop PHP notices fouling up XML, when exporting all pages"
author
Reedy
<reedy@wikimedia.org>
Sat, 31 Mar 2012 01:14:23 +0000
(
01:14
+0000)
committer
Gerrit Code Review
<gerrit@wikimedia.org>
Sat, 31 Mar 2012 01:14:24 +0000
(
01:14
+0000)
includes/specials/SpecialExport.php
patch
|
blob
|
history
diff --git
a/includes/specials/SpecialExport.php
b/includes/specials/SpecialExport.php
index
360d2d2
..
b00eec8
100644
(file)
--- a/
includes/specials/SpecialExport.php
+++ b/
includes/specials/SpecialExport.php
@@
-93,6
+93,13
@@
class SpecialExport extends SpecialPage {
elseif( $request->getCheck( 'exportall' ) && $wgExportAllowAll ) {
$this->doExport = true;
$exportall = true;
+
+ /* Although $page and $history are not used later on, we
+ nevertheless set them to avoid that PHP notices about using
+ undefined variables foul up our XML output (see call to
+ doExport(...) further down) */
+ $page = '';
+ $history = '';
}
elseif( $request->wasPosted() && $par == '' ) {
$page = $request->getText( 'pages' );