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:
f5d4ebe
)
Add xml header (redundant but nice) and correct xml:lang tag
author
Brion Vibber
<brion@users.mediawiki.org>
Mon, 1 Dec 2003 21:29:59 +0000
(21:29 +0000)
committer
Brion Vibber
<brion@users.mediawiki.org>
Mon, 1 Dec 2003 21:29:59 +0000
(21:29 +0000)
includes/SpecialExport.php
patch
|
blob
|
history
diff --git
a/includes/SpecialExport.php
b/includes/SpecialExport.php
index
4b8a2c8
..
4788299
100644
(file)
--- a/
includes/SpecialExport.php
+++ b/
includes/SpecialExport.php
@@
-33,7
+33,8
@@
function wfSpecialExport( $page = "" ) {
function pages2xml( $pages, $curonly = false ) {
global $wgLanguageCode, $wgInputEncoding, $wgLang;
- $xml = "<mediawiki version=\"0.1\" xml:ns=\"$wgLanguageCode\">\n";
+ $xml = "<" . "?xml version=\"1.0\" encoding=\"UTF-8\" ?" . ">\n" .
+ "<mediawiki version=\"0.1\" xml:lang=\"$wgLanguageCode\">\n";
foreach( $pages as $page ) {
$xml .= page2xml( $page, $curonly );
}