(bug 23375) Added ogv, oga, spx as extensions for ogg files. Patch by Derk-Jan Hartman.
[lhc/web/wiklou.git] / maintenance / importTextFile.php
index bfb852e..955d01f 100644 (file)
@@ -11,7 +11,7 @@
 
 $options = array( 'help', 'nooverwrite', 'norc' );
 $optionsWithArgs = array( 'title', 'user', 'comment' );
-require_once( 'commandLine.inc' );
+require_once( dirname(__FILE__) . '/commandLine.inc' );
 echo( "Import Text File\n\n" );
 
 if( count( $args ) < 1 || isset( $options['help'] ) ) {
@@ -23,7 +23,7 @@ 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::newFromURL( $title );
 
                if( is_object( $title ) ) {