Test cases working with “make tap” but not just “phpunit” right now.
[lhc/web/wiklou.git] / maintenance / importUseModWiki.php
index 44a8ba8..0d01414 100644 (file)
@@ -22,7 +22,8 @@
  * 2005-03-14
  *
  * @todo document
- * @addtogroup Maintenance
+ * @file
+ * @ingroup Maintenance
  */
 
 if( php_sapi_name() != 'cli' ) {
@@ -58,7 +59,7 @@ function importPages()
        global $wgRootDirectory;
 
        $gt = '>';
-       echo <<<END
+       echo <<<XML
 <?xml version="1.0" encoding="UTF-8" ?$gt
 <mediawiki xmlns="http://www.mediawiki.org/xml/export-0.1/"
            xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
@@ -68,7 +69,7 @@ function importPages()
            xml:lang="en">
 <!-- generated by importUseModWiki.php -->
 
-END;
+XML;
        $letters = array(
                'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I',
                'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R',
@@ -78,10 +79,10 @@ END;
                if( is_dir( $dir ) )
                        importPageDirectory( $dir );
        }
-       echo <<<END
+       echo <<<XML
 </mediawiki>
 
-END;
+XML;
 }
 
 function importPageDirectory( $dir, $prefix = "" )
@@ -226,11 +227,11 @@ function importPage( $title )
                 */
                $revisions = array( $page );
        }
-       $xml = <<<END
+       $xml = <<<XML
        <page>
                <title>$newtitle</title>
 
-END;
+XML;
 
        # History
        $revisions = array_merge( $revisions, fetchKeptPages( $title ) );
@@ -246,7 +247,7 @@ END;
                $timestamp = xmlsafe( timestamp2ISO8601( $rev->ts ) );
                $comment   = xmlsafe( recodeText( $rev->summary ) );
 
-               $xml .= <<<END
+               $xml .= <<<XML
                <revision>
                        <timestamp>$timestamp</timestamp>
                        <contributor><username>$username</username></contributor>
@@ -255,7 +256,7 @@ END;
                        <text>$text</text>
                </revision>
 
-END;
+XML;
        }
        $xml .= "</page>\n\n";
        return $xml;
@@ -362,4 +363,4 @@ function nowikiPlaceholder( $matches ) {
        return placeholder();
 }
 
-?>
+