diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-05-01 15:32:59 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-05-01 15:32:59 -0400 |
commit | 6dc1997577fab2c366781fd7048144935afa0012 (patch) | |
tree | 8918d28c7ab4342f0738985e37af1dfc42d0e93a /includes/site/SiteExporter.php | |
parent | 150f94f051128f367bc89f6b7e5f57eb2a69fc62 (diff) | |
parent | fa89acd685cb09cdbe1c64cbb721ec64975bbbc1 (diff) |
Merge commit 'fa89acd'
# Conflicts:
# .gitignore
# extensions/ArchInterWiki.sql
Diffstat (limited to 'includes/site/SiteExporter.php')
-rw-r--r-- | includes/site/SiteExporter.php | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/includes/site/SiteExporter.php b/includes/site/SiteExporter.php index 62f6ca3c..169c0d87 100644 --- a/includes/site/SiteExporter.php +++ b/includes/site/SiteExporter.php @@ -57,13 +57,13 @@ class SiteExporter { 'xmlns' => 'http://www.mediawiki.org/xml/sitelist-1.0/', ); - fwrite( $this->sink, XML::openElement( 'sites', $attributes ) . "\n" ); + fwrite( $this->sink, Xml::openElement( 'sites', $attributes ) . "\n" ); foreach ( $sites as $site ) { $this->exportSite( $site ); } - fwrite( $this->sink, XML::closeElement( 'sites' ) . "\n" ); + fwrite( $this->sink, Xml::closeElement( 'sites' ) . "\n" ); fflush( $this->sink ); } @@ -79,36 +79,36 @@ class SiteExporter { $siteAttr = null; } - fwrite( $this->sink, "\t" . XML::openElement( 'site', $siteAttr ) . "\n" ); + fwrite( $this->sink, "\t" . Xml::openElement( 'site', $siteAttr ) . "\n" ); - fwrite( $this->sink, "\t\t" . XML::element( 'globalid', null, $site->getGlobalId() ) . "\n" ); + fwrite( $this->sink, "\t\t" . Xml::element( 'globalid', null, $site->getGlobalId() ) . "\n" ); if ( $site->getGroup() !== Site::GROUP_NONE ) { - fwrite( $this->sink, "\t\t" . XML::element( 'group', null, $site->getGroup() ) . "\n" ); + fwrite( $this->sink, "\t\t" . Xml::element( 'group', null, $site->getGroup() ) . "\n" ); } if ( $site->getSource() !== Site::SOURCE_LOCAL ) { - fwrite( $this->sink, "\t\t" . XML::element( 'source', null, $site->getSource() ) . "\n" ); + fwrite( $this->sink, "\t\t" . Xml::element( 'source', null, $site->getSource() ) . "\n" ); } if ( $site->shouldForward() ) { - fwrite( $this->sink, "\t\t" . XML::element( 'forward', null, '' ) . "\n" ); + fwrite( $this->sink, "\t\t" . Xml::element( 'forward', null, '' ) . "\n" ); } foreach ( $site->getAllPaths() as $type => $path ) { - fwrite( $this->sink, "\t\t" . XML::element( 'path', array( 'type' => $type ), $path ) . "\n" ); + fwrite( $this->sink, "\t\t" . Xml::element( 'path', array( 'type' => $type ), $path ) . "\n" ); } foreach ( $site->getLocalIds() as $type => $ids ) { foreach ( $ids as $id ) { - fwrite( $this->sink, "\t\t" . XML::element( 'localid', array( 'type' => $type ), $id ) . "\n" ); + fwrite( $this->sink, "\t\t" . Xml::element( 'localid', array( 'type' => $type ), $id ) . "\n" ); } } //@todo: export <data> //@todo: export <config> - fwrite( $this->sink, "\t" . XML::closeElement( 'site' ) . "\n" ); + fwrite( $this->sink, "\t" . Xml::closeElement( 'site' ) . "\n" ); } } |