fix field names in PRIMARY KEY spec
[lhc/web/wiklou.git] / maintenance / importPhase2.php
index 42120e2..5d87475 100644 (file)
 # 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 # http://www.gnu.org/copyleft/gpl.html
 
+/**
+ * @todo document
+ * @deprecated
+ * @package MediaWiki
+ * @subpackage Maintenance
+ */
+
+/** */
+die( "This import script is not currently maintained.
+If you need it you'll have to modify it as necessary.\n");
+
 if ( ! is_readable( "../LocalSettings.php" ) ) {
        print "A copy of your installation's LocalSettings.php\n" .
          "must exist in the source directory.\n";
@@ -48,6 +59,11 @@ require_once( "rebuildlinks.inc" );
 require_once( "rebuildrecentchanges.inc" );
 require_once( "rebuildtextindex.inc" );
 
+/**
+ * @todo document
+ * @package MediaWiki
+ * @subpackage Maintenance
+ */
 class Phase2Importer {
        var $olddb, $titleCache;
        
@@ -265,7 +281,7 @@ class Phase2Importer {
                if ( "yes" == $s || "on" == $s ) { $nops["hover"] = 1; }
        
                $c = $ops["cols"];
-               if ( $c < 20 || c > 200 ) { $nops["cols"] = 80; }
+               if ( $c < 20 || $c > 200 ) { $nops["cols"] = 80; }
                else { $nops["cols"] = $c; }
                $r = $ops["rows"];
                if ( $r < 5 || $r > 100 ) { $nops["rows"] = 20; }
@@ -306,6 +322,11 @@ class Phase2Importer {
        
 }
 
+/**
+ * @todo document
+ * @package MediaWiki
+ * @subpackage Maintenance
+ */
 class TitleCache {
        var $hash = array();
        
@@ -346,4 +367,4 @@ $wgTitle = Title::newFromText( "Conversion script" );
 $importer = new Phase2Importer( $olddb );
 $importer->importAll();
 
-?>
\ No newline at end of file
+?>