X-Git-Url: https://git.cyclocoop.org/%242?a=blobdiff_plain;f=includes%2FExport.php;h=43dfd171956d0c61ec16e1b92a772d22a8a5cd39;hb=3c86ddfba55a376abfed9b871901404b7bd1d613;hp=fafc3fbeb04c0682e38f52ef355d3ec8c9c1136e;hpb=7c35170ede7019e72eee6a1788de493b8251c100;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/Export.php b/includes/Export.php index fafc3fbeb0..43dfd17195 100644 --- a/includes/Export.php +++ b/includes/Export.php @@ -69,7 +69,7 @@ class WikiExporter { * @return string */ public static function schemaVersion() { - return "0.8"; + return "0.9"; } /** @@ -532,6 +532,7 @@ class XmlDumpWriter { function siteInfo() { $info = array( $this->sitename(), + $this->dbname(), $this->homelink(), $this->generator(), $this->caseSetting(), @@ -549,6 +550,14 @@ class XmlDumpWriter { return Xml::element( 'sitename', array(), $wgSitename ); } + /** + * @return string + */ + function dbname() { + global $wgDBname; + return Xml::element( 'dbname', array(), $wgDBname ); + } + /** * @return string */