--- convertWiki2SQL.php.orig Fri Mar 15 20:25:39 2002
+++ convertWiki2SQL.php Fri Mar 15 20:37:55 2002
@@ -347,10 +347,14 @@
$a = getTopics ( "$dir/$entry" ) ;
foreach ( $a as $x ) array_push ( $ret , "$entry/$x" ) ;
} else {
- $x = substr ( $entry , 0 , strlen ( $entry ) - 3 ) ;
- array_push ( $ret , $x ) ;
+ if (substr ($entry, strlen ( $entry ) - 3, 3) == '.db') {
+ $x = substr ( $entry , 0 , strlen ( $entry ) - 3 ) ;
+ array_push ( $ret , $x ) ;
+ } else {
+ print "Warning: File \"$entry\" doesn't seem to contain an article
\n" ;
}
}
+ }
}
closedir($mydir);