$options = array( 'help', 'nooverwrite', 'norc' );
$optionsWithArgs = array( 'title', 'user', 'comment' );
-require_once( __DIR__ . '/commandLine.inc' );
+require_once __DIR__ . '/commandLine.inc';
echo "Import Text File\n\n";
if ( count( $args ) < 1 || isset( $options['help'] ) ) {
if ( is_file( $filename ) ) {
$title = isset( $options['title'] ) ? $options['title'] : titleFromFilename( $filename );
- $title = Title::newFromURL( $title );
+ $title = Title::newFromText( $title );
if ( is_object( $title ) ) {